The NDEBUG symbol should be defined for you already in release mode builds
#ifndef NDEBUG
/* Debug only code */
#endif
By using NDEBUG you just avoid having to specify a -D DEBUG argument to the compiler yourself for the debug builds
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…