improve `ABORT' macro

This commit is contained in:
rlar 2016-03-12 20:41:28 +01:00
parent 6fe937f931
commit 273be42cfd
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,12 @@
#define SWAP(type, a, b) {type swapx; swapx = a; a = b; b = swapx;}
#define ABORT() fflush(stderr);fflush(stdout);abort();
#define ABORT() \
do { \
fflush(stderr); \
fflush(stdout); \
abort(); \
} while(0)
#define MERROR(CODE, MESSAGE) \
do { \