Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue Aug 3, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant