Which preprocessor define should be used to specify debug sections of code?
Use #ifdef _DEBUG
or #ifndef NDEBUG
or is there a better way to do it, e.g. #define MY_DEBUG
?
I think _DEBUG
is Visual Studio specific, is NDEBUG standard?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…