In C++, assert is by default compiled. To exclude it, the macro NDEBUG must be defined when assert.h is included. This can be done by using -DNDEBUG compiler option or #define NDEBUG in code.
gcc -DNDEBUG -c test.cpp -o test.o
Wednesday, March 17, 2010
Subscribe to:
Post Comments (Atom)
8 comments:
It's great!!..........................................
Thank you for Posts~............................................................
好的部落格就要和好朋友分享--感謝分享............................................................
好的blog值得一推再推,要愈來愈好哦!!!!............................................................
這麼優的部落格,不踩一下不開心............................................................
多謝美味的心靈雞湯......................................................
好的部落格就要和好朋友分享--感謝分享............................................................
人不能像動物一樣活著,而應該追求知識和美德................. ................................................
Post a Comment