summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-20 23:55:31 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-06 17:12:56 +0300
commit1041a1bda3fcf499e3ffc98c858adaca557fd0b7 (patch)
tree2f5ca87e2d1615de70284f148bdb17070ba3170a /src/common
parent6d3defb319d737435b08694be72a96ef008637b0 (diff)
downloadhercules-1041a1bda3fcf499e3ffc98c858adaca557fd0b7.tar.gz
hercules-1041a1bda3fcf499e3ffc98c858adaca557fd0b7.tar.bz2
hercules-1041a1bda3fcf499e3ffc98c858adaca557fd0b7.tar.xz
hercules-1041a1bda3fcf499e3ffc98c858adaca557fd0b7.zip
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.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/nullpo.h9
1 files changed, 2 insertions, 7 deletions
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 */