M
Mark Adler
Outside of my source file, someone will do one of these four things:
A. #undef FOO
or
B. #define FOO
or
C. #define FOO 0
or
D. #define FOO 1
I need to consider A and C to be equivalent, and B and D to be
equivalent. How do I test for that?
Some example tests:
#if FOO is true for D. #ifdef FOO is true for B, C, and D. #if FOO+0
== 0 is true for B and C.
The problem is that I can't find a test that distinguishes cases B and C.
Any suggestions?
Mark
A. #undef FOO
or
B. #define FOO
or
C. #define FOO 0
or
D. #define FOO 1
I need to consider A and C to be equivalent, and B and D to be
equivalent. How do I test for that?
Some example tests:
#if FOO is true for D. #ifdef FOO is true for B, C, and D. #if FOO+0
== 0 is true for B and C.
The problem is that I can't find a test that distinguishes cases B and C.
Any suggestions?
Mark