diff --git a/include/mimalloc/internal.h b/include/mimalloc/internal.h index 4b211d71..fb359763 100644 --- a/include/mimalloc/internal.h +++ b/include/mimalloc/internal.h @@ -239,20 +239,6 @@ bool _mi_page_is_valid(mi_page_t* page); #endif -// ------------------------------------------------------ -// Debug -// ------------------------------------------------------ - -#if !defined(MI_DEBUG_UNINIT) -#define MI_DEBUG_UNINIT (0xD0) -#endif -#if !defined(MI_DEBUG_FREED) -#define MI_DEBUG_FREED (0xDF) -#endif -#if !defined(MI_DEBUG_PADDING) -#define MI_DEBUG_PADDING (0xDE) -#endif - /* ----------------------------------------------------------- Assertions ----------------------------------------------------------- */ diff --git a/include/mimalloc/types.h b/include/mimalloc/types.h index 03d522b5..77752398 100644 --- a/include/mimalloc/types.h +++ b/include/mimalloc/types.h @@ -562,5 +562,19 @@ struct mi_tld_s { #define EOVERFLOW (75) #endif +// ------------------------------------------------------ +// Debug +// ------------------------------------------------------ + +#ifndef MI_DEBUG_UNINIT +#define MI_DEBUG_UNINIT (0xD0) +#endif +#ifndef MI_DEBUG_FREED +#define MI_DEBUG_FREED (0xDF) +#endif +#ifndef MI_DEBUG_PADDING +#define MI_DEBUG_PADDING (0xDE) +#endif + #endif // MI_TYPES_H