diff --git a/src/include/ngspice/macros.h b/src/include/ngspice/macros.h index d568cbd93..47d2886f6 100644 --- a/src/include/ngspice/macros.h +++ b/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 { \