Skip to content

Instantly share code, notes, and snippets.

@esavier
Forked from jlintz/gist:1192247
Created October 21, 2019 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esavier/ea3ec7db5aa858a64bbeea405096707c to your computer and use it in GitHub Desktop.
Save esavier/ea3ec7db5aa858a64bbeea405096707c to your computer and use it in GitHub Desktop.
Useful C debug macro
#ifdef DEBUG
#define _DEBUG(fmt, args...) printf("%s:%s:%d: "fmt, __FILE__, __FUNCTION__, __LINE__, args)
#else
#define _DEBUG(fmt, args...)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment