Oh, god, so awful. All those ifdefs..
Funny: Tried to find the comment commenting it out. I found it. #IF 0. Wow.
Funny: Tried to find the comment commenting it out. I found it. #IF 0. Wow.
#if 0 is also a convenient way to flip bits of test/debug code on and off.
#if 0 <...> #else <...> #endif
Is a pretty standard way to switch between new/old code while refactoring to check if behavior/output matches. Just change 0 to 1 to switch between "versions".