farnulfo / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Add NDEBUG define for C/C++ compiles #175

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some C/C++ users use assert() to catch errors whilst developing. Normally in 
production you compile with -DNDEBUG to turn off the assertion checking thus 
getting a slightly faster program and more importantly in this context, one 
which doesn't deliberately exit if an assert is triggered.

Please consider adding "-DNDEBUG" to the compiler switches for C and C++ code. 

Original issue reported on code.google.com by michael....@gmail.com on 21 Sep 2010 at 8:26

GoogleCodeExporter commented 8 years ago
I coded around this, but it would be simpler and cleaner to just accept the 
suggestion.

Original comment by mcques...@gmail.com on 12 Nov 2010 at 5:14