应该使用哪个预处理器定义来指定代码的调试部分?
使用#ifdef _DEBUG或者#ifndef NDEBUG是否有更好的方法来做到这一点,例如#define MY_DEBUG?
#ifdef _DEBUG
#ifndef NDEBUG
#define MY_DEBUG
我认为_DEBUG是Visual Studio特有的,是NDEBUG标准吗?
_DEBUG
c c++ debugging
c ×1
c++ ×1
debugging ×1