Skip to content

Commit

Permalink
Remove HEAPCHECK() macro as unused
Browse files Browse the repository at this point in the history
  • Loading branch information
winterheart committed Oct 5, 2024
1 parent 0e959cb commit 51da6aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
15 changes: 0 additions & 15 deletions ddebug/pserror.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 0 additions & 14 deletions netgames/includes/DMFC.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51da6aa

Please sign in to comment.