Browse Source

improve `ABORT' macro

pre-master-46
rlar 10 years ago
parent
commit
273be42cfd
  1. 7
      src/include/ngspice/macros.h

7
src/include/ngspice/macros.h

@ -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 { \

Loading…
Cancel
Save