summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-01-09 10:00:03 +0100
committerGitHub <noreply@github.com>2018-01-09 10:00:03 +0100
commit7379f8cc3e97110dae314a328eff2eca235a0ee3 (patch)
tree2f5ca87e2d1615de70284f148bdb17070ba3170a /src
parent6d3defb319d737435b08694be72a96ef008637b0 (diff)
parent1041a1bda3fcf499e3ffc98c858adaca557fd0b7 (diff)
downloadhercules-7379f8cc3e97110dae314a328eff2eca235a0ee3.tar.gz
hercules-7379f8cc3e97110dae314a328eff2eca235a0ee3.tar.bz2
hercules-7379f8cc3e97110dae314a328eff2eca235a0ee3.tar.xz
hercules-7379f8cc3e97110dae314a328eff2eca235a0ee3.zip
Merge pull request #1937 from 4144/asserts
Enable always asserts and nullpo checks.
Diffstat (limited to 'src')
-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 */