Skip to content

Instantly share code, notes, and snippets.

@baron
Forked from atnan/Debugging.h
Created May 4, 2010 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baron/388767 to your computer and use it in GitHub Desktop.
Save baron/388767 to your computer and use it in GitHub Desktop.
# define ALog(format, ...) NSLog((@"%s [L%d] " format), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
# ifdef DEBUG
# define DLog(format, ...) ALog(format, ##__VA_ARGS__);
# else
# define DLog(...)
# endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment