Skip to content

Commit

Permalink
#128 Add initial version of UREACT_HEADER_ONLY and UREACT_FUNC defines
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikTH committed Aug 26, 2023
1 parent f09837c commit d080775
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/ureact/detail/defines.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ static_assert( __cplusplus >= 201703L, "At least c++17 standard is required" );
{
#endif

#ifndef UREACT_HEADER_ONLY
# define UREACT_HEADER_ONLY 1
#endif

#if UREACT_HEADER_ONLY
# define UREACT_FUNC inline
#else
# define UREACT_FUNC
#endif

#define UREACT_SETUP_COPY( ClassName, Action ) \
ClassName( const ClassName& ) = Action; \
ClassName& operator=( const ClassName& ) = Action
Expand Down

0 comments on commit d080775

Please sign in to comment.