在eclipse项目中禁用所有函数/方法调用
我在eclipse中有一个C项目,我想禁用该项目中所有函数调用的出现 有可能吗在eclipse项目中禁用所有函数/方法调用,c,eclipse,comments,C,Eclipse,Comments,我在eclipse中有一个C项目,我想禁用该项目中所有函数调用的出现 有可能吗 file : ref.c int refer() { a = 0; } file one.c int call{ XXXX XXX //refer(); } file two.c int call1{ XXXX XXX //refer(); } 如何实现上述您可以使用以下方
file : ref.c
int refer()
{
a = 0;
}
file one.c
int call{
XXXX
XXX
//refer();
}
file two.c
int call1{
XXXX
XXX
//refer();
}
如何实现上述您可以使用以下方法定义:
#define refer()
将上面的行添加到包含在所有源文件中的文件中
或者,您可以添加编译器(预处理器)选项
添加到build命令
-D'refer()'=