summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mimalloc-types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mimalloc-types.h b/include/mimalloc-types.h
index b349dfc..6eeffeb 100644
--- a/include/mimalloc-types.h
+++ b/include/mimalloc-types.h
@@ -393,9 +393,15 @@ struct mi_heap_s {
// 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
#if (MI_DEBUG)
// use our own assertion to print without memory allocation