summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-06 10:23:28 +0100
committeraap <aap@papnet.eu>2021-02-06 10:23:28 +0100
commitcc435ea71187b07a5dd1fbd817dcfb31c0230d7f (patch)
tree959c628cf50e7e6e157a8defd4d42c53ca190cf0 /src/core
parentfix generic.txd crash (diff)
parentfix (diff)
downloadre3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.tar
re3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.tar.gz
re3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.tar.bz2
re3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.tar.lz
re3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.tar.xz
re3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.tar.zst
re3-cc435ea71187b07a5dd1fbd817dcfb31c0230d7f.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/common.h2
-rw-r--r--src/core/config.h6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 75ba8863..d39531cc 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -355,7 +355,7 @@ __inline__ void TRACE(char *f, ...) { } // this is re3 only, and so the function
#ifndef MASTER
#define assert(_Expression) (void)( (!!(_Expression)) || (re3_assert(#_Expression, __FILE__, __LINE__, __FUNCTION__), 0) )
#else
-#define assert(_Expression)
+#define assert(_Expression) (_Expression)
#endif
#define ASSERT assert
diff --git a/src/core/config.h b/src/core/config.h
index e75cdfb0..cc82f8d6 100644
--- a/src/core/config.h
+++ b/src/core/config.h
@@ -251,6 +251,12 @@ enum Config {
#define FIX_BUGS_64 // Must have fixes to be able to run 64 bit build
#endif
+#define ASCII_STRCMP // use faster ascii str comparisons
+
+#if !defined _WIN32 || defined __MWERKS__ || defined __MINGW32__ || defined VANILLA_DEFINES
+#undef ASCII_STRCMP
+#endif
+
// Just debug menu entries
#ifdef DEBUGMENU
#define RELOADABLES // some debug menu options to reload TXD files