Daily Archives: March 23, 2009

A drop-in replacement for NSLog()

I recently saw this post on turning off NSLog for non-debug builds, and found it disappointing and inspirational at the same time. Scattering hundreds of #ifdefs around code is a recipe for disaster. Eventually some non debugging code will end up inside the #ifdef and the debug and release builds will function differently, making debugging [...]

Posted in TheCodeBook - Snippets | Comments Off
  • iChat Status