diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-27 18:59:08 +0100 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-27 18:59:08 +0100 |
commit | 8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df (patch) | |
tree | 5992e352179d2cdf4c7ebd9f40cbc5321a1de2de /converter/source/MemoryLeak.h | |
parent | Including converter update with windows binary from forums. Shouldn't need to load a solution to compile a windows program really. (diff) | |
download | cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.tar cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.tar.gz cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.tar.bz2 cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.tar.lz cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.tar.xz cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.tar.zst cuberite-8a21fbf0cec3af9c9a7b957fdbffb19addb0b7df.zip |
Diffstat (limited to 'converter/source/MemoryLeak.h')
-rw-r--r-- | converter/source/MemoryLeak.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/converter/source/MemoryLeak.h b/converter/source/MemoryLeak.h new file mode 100644 index 000000000..6ac06a302 --- /dev/null +++ b/converter/source/MemoryLeak.h @@ -0,0 +1,18 @@ +#pragma once
+
+#ifdef _WIN32
+
+#ifdef _DEBUG
+
+#define _CRTDBG_MAP_ALLOC
+#include <stdlib.h>
+#include <crtdbg.h>
+
+#ifndef DEBUG_NEW
+#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
+#define new DEBUG_NEW
+#endif
+
+#endif
+
+#endif
|