Skip to content
Snippets Groups Projects
Commit 5970b13c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fixed Assert macro with NDEBUG flag.

parent b7108bf8
No related branches found
No related tags found
No related merge requests found
...@@ -47,9 +47,8 @@ class AssertError ...@@ -47,9 +47,8 @@ class AssertError
#ifdef NDEBUG #ifdef NDEBUG
#warning check that this test does not degrade performaces // Useless test is there to check syntax even in optimized mode. Costs nothing.
#define Assert(assertion) \ #define Assert(assertion) if (not (assertion)) {}
if (not (assertion)) false;
#else // NDEBUG #else // NDEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment