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

That was not part of the spec :-)
  • Comment on Re^3: nested #if directive matching matching

Replies are listed 'Best First'.
Re^4: nested #if directive matching matching
by Anonymous Monk on Jun 26, 2012 at 19:35 UTC

    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.

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

      True laziness is hard work