Skip to content

Instantly share code, notes, and snippets.

@prwhite
Created March 25, 2015 19:04
Show Gist options
  • Save prwhite/b95fe6154bd3d559eff2 to your computer and use it in GitHub Desktop.
Save prwhite/b95fe6154bd3d559eff2 to your computer and use it in GitHub Desktop.

Revisions

  1. prwhite created this gist Mar 25, 2015.
    7 changes: 7 additions & 0 deletions gistfile1.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #ifdef DEBUG
    #define NSLogDebug(format, ...) \
    NSLog(@"<%s:%d> %s, " format, \
    strrchr("/" __FILE__, '/') + 1, __LINE__, __PRETTY_FUNCTION__, ## __VA_ARGS__)
    #else
    #define NSLogDebug(format, ...)
    #endif