aboutsummaryrefslogtreecommitdiff
path: root/src/pre.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre.hpp')
-rw-r--r--src/pre.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pre.hpp b/src/pre.hpp
new file mode 100644
index 00000000..03c51a94
--- /dev/null
+++ b/src/pre.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#ifdef _DEBUG
+#define CRU_DEBUG
+#endif
+
+#ifdef CRU_DEBUG
+#define CRU_DEBUG_LAYOUT
+#endif
+
+
+#ifdef CRU_DEBUG
+// ReSharper disable once IdentifierTypo
+// ReSharper disable once CppInconsistentNaming
+#define _CRTDBG_MAP_ALLOC
+#include <cstdlib>
+#include <crtdbg.h>
+#endif