Skip to content

Instantly share code, notes, and snippets.

@dangkhoasdc
Created April 14, 2013 00:17
Show Gist options
  • Save dangkhoasdc/5380741 to your computer and use it in GitHub Desktop.
Save dangkhoasdc/5380741 to your computer and use it in GitHub Desktop.
#define MAX_BUFERROR 255
#define COMMAND_ERROR printf
#define NEWEXCEPTION(mess, code) { \
char err[MAX_BUFERROR]; \
sprintf(err,mess". CODE: %d.\n", code);\
COMMAND_ERROR (err);\
fflush(NULL);\
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment