Since 1 is true, I'd expect to get exactly what you're getting. If you change it to "#if 0" do you get what you were wanting?
Update: The quick hack I mentioned previously used the stack (as does tonyink's reply). It mostly wanted a way to handle #include files for getting the definitions of other #defines & such.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: nested #if directive matching matching
by roboticus
in thread nested #if directive matching matching
by prassi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |