Last active
December 12, 2019 11:36
-
-
Save dovideh/4c5e6898efab60c2797de867a1756d5b to your computer and use it in GitHub Desktop.
Define tricks
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 FAIL_IF(EXP) (\ | |
{\ | |
if(EXP) {\ | |
exit(EXIT_FAILURE);\ | |
}\ | |
}\ | |
)\ | |
#define FAIL_IF_MSG(EXP,MSG) (\ | |
{\ | |
if(EXP){\ | |
printf(MSG"\n");\ | |
exit(EXIT_FAILURE);\ | |
}\ | |
}\ | |
)\ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment