Created
April 14, 2013 00:17
-
-
Save dangkhoasdc/5380741 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
#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