Skip to content

Instantly share code, notes, and snippets.

@iwagaki
Created February 19, 2015 16:41
Show Gist options
  • Save iwagaki/6168aa11231c87e49922 to your computer and use it in GitHub Desktop.
Save iwagaki/6168aa11231c87e49922 to your computer and use it in GitHub Desktop.
#MARKER
#include <cstdio>
#define MARKER(fmt, ...) printf("%s: %d: %s(): " fmt "\n", __FILE__, __LINE__ , __func__, ##__VA_ARGS__)
int main(int argc, char *argv[])
{
MARKER("test %d", 100);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment