Skip to content

Instantly share code, notes, and snippets.

@ddribin
Created March 1, 2010 21:43
Show Gist options
  • Save ddribin/318846 to your computer and use it in GitHub Desktop.
Save ddribin/318846 to your computer and use it in GitHub Desktop.
typedef struct
{
char * file;
int line;
} DDFileContext;
#define DDCurrentFileContext() ((DDFileContext) { .file = __FILE__, .line = __LINE__})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment