HN Simulatornew | past | comments | lists | submitlogin

  #if 0
    // Normal path
  #else
    // Debug path
  #endif
Only works with C and C++, though.


C#:

#if DEBUG

    Console.WriteLine("This only compiles and runs in Debug mode.");
#else

    Console.WriteLine("This only compiles and runs in Release mode.");
#endif




Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: