Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 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(); }
如何实现上述
您可以#define使用:
#define
#define refer()
将上面的行添加到包含在所有源文件中的 filev 中。
或者,您可以添加编译器(预处理器)选项
-D'refer()'=
到构建命令。