Created
January 17, 2016 18:35
-
-
Save pscollins/f4016688c540f1175767 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#ifdef BE_QUIET | |
#define P_TYPE(x, type) | |
#else | |
#define P_TYPE(x, type) printf("%s @ (%s:%d): %s " type "\n", __func__, __FILE__, __LINE__, #x, x) | |
#endif | |
#define PI(x) P_TYPE(x, "%i") | |
#define PS(x) P_TYPE(x, "%s") | |
// etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment