Skip to content

Instantly share code, notes, and snippets.

@Geal
Created November 25, 2011 16:50
Show Gist options
  • Save Geal/1393956 to your computer and use it in GitHub Desktop.
Save Geal/1393956 to your computer and use it in GitHub Desktop.
Macro displaying __FUNCTION__ and __LINE__ and concatenating its arguments
#define STR(x) #x
#define STR1(x) STR(x)
#define DEBUGME(a) OutputDebugStringA( "[DEBUG| " __FUNCTION__ ":" STR1(__LINE__) "] " a "\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment