用宏判断程序当前的运行模式(debug or release) 例子 #if defined (DEBUG) && DEBUG == 1 // 如果当前处于debug 模式 //to do #else //to do #endif