int main() { __s32 res = 0; #ifdef ENABLE // 使用res变量的code #endif return 0; }
这个代码在没有设置ENABLE的时候,会报警告res这个变量unuse,我想问问有什么办法定义变量可以解决?我在想宏定义可不可以,但是我不太懂C,不知道具体怎么做。