S
Shea Martin
I would like to issue a warning with the preprocessor:
#ifdef _A_DEFINE && OTHER_DEFINE
#print "_A_DEFINE and OTHER_DEFINE cannot both be defined"
#print "OTHER_DEFINE will be undefined for you"
#endif
I realize that the above example may created some unexpected behavoir,
but the situation in which I am actually using it makes sense.
I have tried using #error "my message", but this causes the CPP to
abort, I just want a warning printed.
I also tried #warn "my message", but this is not recognized my Sun's CPP.
Thanks,
~S
#ifdef _A_DEFINE && OTHER_DEFINE
#print "_A_DEFINE and OTHER_DEFINE cannot both be defined"
#print "OTHER_DEFINE will be undefined for you"
#endif
I realize that the above example may created some unexpected behavoir,
but the situation in which I am actually using it makes sense.
I have tried using #error "my message", but this causes the CPP to
abort, I just want a warning printed.
I also tried #warn "my message", but this is not recognized my Sun's CPP.
Thanks,
~S