Skip to content

Instantly share code, notes, and snippets.

@dnnta
Created December 18, 2015 05:45
Show Gist options
  • Save dnnta/744aa9a7bf5f26560545 to your computer and use it in GitHub Desktop.
Save dnnta/744aa9a7bf5f26560545 to your computer and use it in GitHub Desktop.
Log Macro
#define _DD_MACRO_SELF_STR(macro) #macro
#define _DD_MACRO_TO_STR(macro) _DD_MACRO_SELF_STR(macro)
#define DD_LOG_MACRO(macro) NSLog(@"\n%s\n%s", #macro, _DD_MACRO_TO_STR(macro))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment