mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 14:19:02 +00:00
Add a way to sprinkle heap integrity checks over Dolphin without breaking the linux build
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@613 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b74e161a5a
commit
87f42c9237
1 changed files with 4 additions and 0 deletions
|
@ -21,9 +21,13 @@
|
||||||
#define _CRTDBG_MAP_ALLOC
|
#define _CRTDBG_MAP_ALLOC
|
||||||
#define _CRTDBG_MAP_ALLOC_NEW
|
#define _CRTDBG_MAP_ALLOC_NEW
|
||||||
|
|
||||||
|
#define CHECK_HEAP_INTEGRITY()
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
|
#undef CHECK_HEAP_INTEGRITY
|
||||||
|
#define CHECK_HEAP_INTEGRITY() {if (!_CrtCheckMemory()) PanicAlert("memory corruption detected. see log.");}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../../PluginSpecs/CommonTypes.h"
|
#include "../../../PluginSpecs/CommonTypes.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue