in reply to Re^3: nested #if directive matching matching
in thread nested #if directive matching matching

Using the counter, bitshift left and increment if true. Else is an XOR 1. Endif is a bitshift right.

Initialize with a sentinel value so you know when you're done.

  • Comment on Re^4: nested #if directive matching matching

Replies are listed 'Best First'.
Re^5: nested #if directive matching matching
by GrandFather (Saint) on Jun 26, 2012 at 21:13 UTC

    That is a stack. Not an overly deep one, but probably sufficient for the purpose.

    True laziness is hard work