Skip to content

Commit

Permalink
the ever-important double-paren
Browse files Browse the repository at this point in the history
  • Loading branch information
mpmilano committed Jul 12, 2018
1 parent f205287 commit afe1622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macro_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
#ifndef NDEBUG
#define whendebug(x...) x
#define whenrelease(x...)
#define assert_always(x...) assert(x)
#define assert_always(x...) assert((x))
#else
#define whendebug(x...)
#define whenrelease(x...) x
namespace mutils { void error_and_abort(char const * const) __attribute__((noreturn)); }
#define assert_always(x...) if(!x){::mutils::error_and_abort(#x);}
#define assert_always(x...) if(!(x)){::mutils::error_and_abort(#x);}
#endif

#define MACRO_GET_1(str, i) \
Expand Down

0 comments on commit afe1622

Please sign in to comment.