diff options
author | Max Horn | 2006-09-23 11:29:32 +0000 |
---|---|---|
committer | Max Horn | 2006-09-23 11:29:32 +0000 |
commit | d02e4d7f7c7affb4e6f52c0e5a9a8b5a0ca0c610 (patch) | |
tree | 0752b64d29cf738449839c587e9dcd0b1d2d35c7 /common | |
parent | 847c145810919e6670a6d67e29b9e53b39502ca8 (diff) | |
download | scummvm-rg350-d02e4d7f7c7affb4e6f52c0e5a9a8b5a0ca0c610.tar.gz scummvm-rg350-d02e4d7f7c7affb4e6f52c0e5a9a8b5a0ca0c610.tar.bz2 scummvm-rg350-d02e4d7f7c7affb4e6f52c0e5a9a8b5a0ca0c610.zip |
Removed CHECK_HEAP
svn-id: r23979
Diffstat (limited to 'common')
-rw-r--r-- | common/scummsys.h | 14 | ||||
-rw-r--r-- | common/util.cpp | 8 | ||||
-rw-r--r-- | common/util.h | 2 |
3 files changed, 0 insertions, 24 deletions
diff --git a/common/scummsys.h b/common/scummsys.h index 89621458b4..50226ce51e 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -97,11 +97,6 @@ // explains the reasons briefly. #define SCUMMVM_USE_LONG_INT - #if defined(CHECK_HEAP) - #undef CHECK_HEAP - #define CHECK_HEAP checkHeap(); - #endif - #define FORCEINLINE __forceinline #define NORETURN _declspec(noreturn) #define PLUGIN_EXPORT __declspec(dllexport) @@ -320,11 +315,6 @@ #define SCUMM_LITTLE_ENDIAN - #if defined(CHECK_HEAP) - #undef CHECK_HEAP - #define CHECK_HEAP checkHeap(); - #endif - #define FORCEINLINE __forceinline #define NORETURN _declspec(noreturn) #define PLUGIN_EXPORT __declspec(dllexport) @@ -368,10 +358,6 @@ #define FORCEINLINE inline #endif -#ifndef CHECK_HEAP -#define CHECK_HEAP -#endif - #ifndef CDECL #define CDECL #endif diff --git a/common/util.cpp b/common/util.cpp index 6f4f3f1a67..694bd7fdfb 100644 --- a/common/util.cpp +++ b/common/util.cpp @@ -534,11 +534,3 @@ void CDECL warning(const char *s, ...) { #endif #endif } - -void checkHeap() { -#if defined(WIN32) && !defined(__SYMBIAN32__) - if (_heapchk() != _HEAPOK) { - error("Heap is invalid!"); - } -#endif -} diff --git a/common/util.h b/common/util.h index c55bee6c1d..6fb0e68a90 100644 --- a/common/util.h +++ b/common/util.h @@ -274,8 +274,6 @@ void CDECL debug(const char *s, ...) GCC_PRINTF(1, 2); void CDECL debugN(int level, const char *s, ...) GCC_PRINTF(2, 3); void CDECL debugC(int level, uint32 engine_level, const char *s, ...) GCC_PRINTF(3, 4); -void checkHeap(); - extern int gDebugLevel; |