I’ve been adding a module to http://minisat.se/MiniSat.html package. I had a bunch of asserts that I now realize are neither getting triggered nor even compiled. How it can be? I searched the net for “masked asserts”, but no clue. Can it be that the make rules for the package somehow remove the assertions? Even assert(0) was not causing the program to SIGABORT…
I’ve been adding a module to http://minisat.se/MiniSat.html package. I had a bunch of asserts
Share
Check your preprocessor settings. When
NDEBUG(i.e.-DNDEBUGon the compiler commandline) is defined, all asserts will be removed.