Conditional value for a #define

Posted by William Jockusch on Stack Overflow See other posts from Stack Overflow or by William Jockusch
Published on 2010-06-14T22:07:57Z Indexed on 2010/06/14 22:12 UTC
Read the original article Hit count: 193

Filed under:

I want to define a macro kDependentMacro to be 38 if the macro kIndependentMacro is defined and 40 otherwise. What is the simplest way to do that?

© Stack Overflow or respective owner

Related posts about macros