My code is full of calls to assert(condition). In the debug version I use g++ -g which triggers my assertions. Unexpectedly, the same assertions ar
assert(condition)
g++ -g
Yes, define NDEBUG on the command line/build system with the preprocessor/compiler option -DNDEBUG.
NDEBUG
-DNDEBUG
This has nothing to do with the debugging info inserted by -g.
-g