Skip to content

Commit 40dab5e

Browse files
committed
DEBUG: Run debug code in debug builds, not release
SCTK_ALLOC_DEBUG was defined in release builds, not in debug builds. It is now defined in debug builds only.
1 parent 852ee50 commit 40dab5e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/sctk_alloc_debug.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,9 @@
2828
#include <stdio.h>
2929
#include <stdlib.h>
3030

31-
//compat with NDEBUG system because using this has consequences in MPC sources.
32-
#ifdef NDEBUG
33-
#undef SCTK_ALLOC_DEBUG
31+
#ifndef NDEBUG
3432
#define SCTK_ALLOC_DEBUG
35-
#endif //NDEBUG
33+
#endif
3634

3735
/************************** MACROS *************************/
3836
#if defined(SCTK_ALLOC_DEBUG)

0 commit comments

Comments
 (0)