B
BigMan
Are these two lines equivalent?
#ifdef MACRO
#if MACRO==0
#ifdef MACRO
#if MACRO==0
BigMan said:Are these two lines equivalent?
#ifdef MACRO
#if MACRO==0
BigMan said:Ooops, I've put it the wrong way. Here's what I mean: does it matter
which line I use to check if a macro has been defined.
If he doesn't want to worry about the case where it is defined and is zero.Default said:Yes, it matters. Didn't you read the other posts? The first way is
correct.
Ron said:If he doesn't want to worry about the case where it is defined and is zero.
It doesn't matter.
BigMan said:Ooops, I've put it the wrong way. Here's what I mean: does it matter
which line I use to check if a macro has been defined.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.