0

I've seen some compilers that lets you stop reading the file where ever in the file you want and I want to know if obj-c has such thing here's an example, so you can understand:

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

1 Answer 1

0

No, you can't simply stop compilation in the middle of the file. You'd have to structure it this way:

#if __OBJC__
// the rest of the file
#endif
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.