summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-09 01:41:45 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-09 01:41:45 +0100
commit122c7aa40dda35107312fe91e0c61852c3056ddc (patch)
tree53bfff7b2644ed6af5068315630ef64ff9be02ce /src/core
parentMerge pull request #871 from withmorten/sized-enums (diff)
downloadre3-122c7aa40dda35107312fe91e0c61852c3056ddc.tar
re3-122c7aa40dda35107312fe91e0c61852c3056ddc.tar.gz
re3-122c7aa40dda35107312fe91e0c61852c3056ddc.tar.bz2
re3-122c7aa40dda35107312fe91e0c61852c3056ddc.tar.lz
re3-122c7aa40dda35107312fe91e0c61852c3056ddc.tar.xz
re3-122c7aa40dda35107312fe91e0c61852c3056ddc.tar.zst
re3-122c7aa40dda35107312fe91e0c61852c3056ddc.zip
Diffstat (limited to '')
-rw-r--r--src/core/common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h
index 48b20884..d5775e08 100644
--- a/src/core/common.h
+++ b/src/core/common.h
@@ -248,8 +248,14 @@ void re3_usererror(const char *format, ...);
#define DEBUGBREAK() __debugbreak();
-#define debug(f, ...) re3_debug("[DBG]: " f, ## __VA_ARGS__)
+// Switch to enable development messages.
+#if 1
+#define DEV(f, ...)
+#else
#define DEV(f, ...) re3_debug("[DEV]: " f, ## __VA_ARGS__)
+#endif
+
+#define debug(f, ...) re3_debug("[DBG]: " f, ## __VA_ARGS__)
#define TRACE(f, ...) re3_trace(__FILE__, __LINE__, __FUNCTION__, f, ## __VA_ARGS__)
#define Error(f, ...) re3_debug("[ERROR]: " f, ## __VA_ARGS__)
#define USERERROR(f, ...) re3_usererror(f, ## __VA_ARGS__)