From 1041a1bda3fcf499e3ffc98c858adaca557fd0b7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 20 Dec 2017 23:55:31 +0300 Subject: Enable always asserts and nullpo checks. Before this options was depend on debug configure flag. But this options is must because without server may crash in any exploits. --- src/common/nullpo.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/common/nullpo.h b/src/common/nullpo.h index 28d058dc0..ae0c82364 100644 --- a/src/common/nullpo.h +++ b/src/common/nullpo.h @@ -23,15 +23,10 @@ #include "common/hercules.h" -// enabled by default on debug builds -#if defined(DEBUG) && !defined(NULLPO_CHECK) +// if need disable nullpo checks this line can be commented #define NULLPO_CHECK -#endif - -// Skip assert checks on release builds -#if !defined(RELEASE) && !defined(ASSERT_CHECK) +// if need disable asserts checks this line can be commented #define ASSERT_CHECK -#endif /** Assert */ -- cgit v1.2.3-60-g2f50