Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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