From 51da6aaae828d253c32befd492ed076e9afcda25 Mon Sep 17 00:00:00 2001 From: "Azamat H. Hackimov" Date: Sat, 5 Oct 2024 05:21:41 +0300 Subject: [PATCH] Remove HEAPCHECK() macro as unused --- ddebug/pserror.h | 15 --------------- netgames/includes/DMFC.h | 14 -------------- 2 files changed, 29 deletions(-) diff --git a/ddebug/pserror.h b/ddebug/pserror.h index e27aa6766..4daf644e9 100644 --- a/ddebug/pserror.h +++ b/ddebug/pserror.h @@ -228,24 +228,9 @@ static inline void SetDebugBreakHandlers(void (*stop)(), void (*resume)()) { } \ } while (0) -#if defined(WIN32) - -#define HEAPCHECK() \ - do { \ - if (_heapchk() != _HEAPOK) \ - Int3(); \ - } while (0) - -#elif defined(POSIX) - -#define HEAPCHECK() - -#endif - #else #define DEBUG_BREAK() #define ASSERT(x) #define Int3() -#define HEAPCHECK() #endif #endif diff --git a/netgames/includes/DMFC.h b/netgames/includes/DMFC.h index e9066577c..be10f7305 100644 --- a/netgames/includes/DMFC.h +++ b/netgames/includes/DMFC.h @@ -332,20 +332,6 @@ #define DLLmprintf(...) DLLDebug_ConsolePrintf(__VA_ARGS__) -#if defined(WIN32) - -#define HEAPCHECK() \ - do { \ - if (_heapchk() != _HEAPOK) \ - Int3(); \ - } while (0) - -#elif defined(POSIX) - -#define HEAPCHECK() - -#endif - #else // Release build #ifdef DEBUG_BREAK