What does gcC # define do when compiling objective-c (++)?

Is there some kind of #define that I can look at so that I know when to retract <OpenGLES/EAGL.h> , for example? Thanks!

+4
source share
2 answers

This should work:

 #if defined(__OBJC__) && defined(__cplusplus) 

For Objective-C, just leave the __cplusplus part

+4
source

You can determine this by running "gcc -v filename" and find the arguments to the command "cc1" (-DTHIS, -DTHAT, ...).

+1
source

All Articles