0

我见过一些编译器可以让你停止读取文件中任何你想要的文件,我想知道 obj-c 是否有这样的东西,这是一个例子,所以你可以理解:

#ifndef __OBJC__   // or #if !defined(__OBJC__)
#exit  // do not continue compiling this file!
#endif
4

1 回答 1

0

不,您不能简单地在文件中间停止编译。您必须以这种方式构造它:

#if __OBJC__
// the rest of the file
#endif
于 2013-05-06T22:37:39.517 回答