diff options
Diffstat (limited to 'include/omc.h')
-rw-r--r-- | include/omc.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/omc.h b/include/omc.h index 0d62508..cc1d705 100644 --- a/include/omc.h +++ b/include/omc.h @@ -48,12 +48,13 @@ guard_free(ARR); \ } while (0) -#define COE_CHECK_ABORT(COND, MSG) {\ - if (COND) { \ - msg(OMC_MSG_ERROR, MSG ": Aborting execution (--continue-on-error/-C is not enabled)\n"); \ - exit(1); \ - } \ -} +#define COE_CHECK_ABORT(COND, MSG) \ + do {\ + if (!globals.continue_on_error && COND) { \ + msg(OMC_MSG_ERROR, MSG ": Aborting execution (--continue-on-error/-C is not enabled)\n"); \ + exit(1); \ + } \ + } while (0) struct OMC_GLOBAL { bool verbose; //!< Enable verbose output |