From 29ee932e93eb9da324ca166c6023803924117561 Mon Sep 17 00:00:00 2001 From: Liviu Chircu Date: Tue, 21 Dec 2021 16:04:08 +0200 Subject: [PATCH] Enable opensips.cfg asserts by default in DEV builds --- globals.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/globals.c b/globals.c index 881e0c74ceb..ab15573508c 100644 --- a/globals.c +++ b/globals.c @@ -72,8 +72,12 @@ enum poll_types io_poll_method=0; int debug_mode = 0; /* do not become daemon, stay attached to the console */ int no_daemon_mode = 0; -/* assertion statements in script. disabled by default */ +/* assertion statements in script. disabled by default, except for DEV build */ +#if defined(CC_O0) || defined(EXTRA_DEBUG) +int enable_asserts = 1; +#else int enable_asserts = 0; +#endif /* abort process on failed assertion. disabled by default */ int abort_on_assert = 0; /* start by only logging to stderr */