This questions is regarding conditional #define's. I was curious if I could use the pre-processor to figure out the value of a #define, or if in fact a #define is defined or undefined.
example"
Code:
#ifdef ON
#define size 10
#else
#define size 5
#endif
Can I find out if ON is defined in the above example and/or what the value of size is? Are there pre-processor directives for this? All i have used the pre-processor for is to do the passovers and remove all of this so I can analyze the actual code being used. This is alot different of an idea.
Also, I am not talking about C code or runtime stuff, just basically a gcc directive I could use to say ON is defined, or size is 10 without any execution.