logoalt Hacker News

customguytoday at 7:03 AM2 repliesview on HN

I am so proud of this (I'm sure others came up with it way before me, but I still came up with it all by myself!)

    //*
        normal path
    /*/
        debug path
    //*/
take away the the first slash to toggle the debug zone ON!

Replies

penguin_boozetoday at 8:22 AM

  #if 0
    // Normal path
  #else
    // Debug path
  #endif
Only works with C and C++, though.
normie3000today at 7:49 AM

It's awesome in both senses! How readable has it become for you over time? Because on first glance and without syntax highlighting it's a head-scratcher.

show 1 reply