Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/14/06 04:10
Read: times


 
Msg Score: -1
 -1 Didn't Search First
#109895 - C preprocess question
Hello,

Anybody know how to do logical operations with preprocess instrutions, for example,

#define A
#define B

// if either A or B is defined,
#if ((#ifdef A) || (#ifdef B)) // incorrect!
// do something
#else
// do other thing
#endif

Regards,


List of 5 messages in thread
TopicAuthorDate
C preprocess question            01/01/70 00:00      
   defined() if supprorted            01/01/70 00:00      
      in a much more complex environment            01/01/70 00:00      
         #ifdef vs #if defined()            01/01/70 00:00      
   problem solved            01/01/70 00:00      

Back to Subject List