diff options
author | Daan <daan@microsoft.com> | 2022-01-10 16:12:10 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 16:12:10 -0800 |
commit | 55b4d5e2b162a3bcd5d83c5c882cca09be96438a (patch) | |
tree | 6e97197ec3b4e2ec08b814ffa2f7222703736280 /include | |
parent | f45935cf347723ee24e6419cebe76a6d6f27eef9 (diff) | |
parent | 0353fc38dd575903a9a2d80c9ddfff245d3c579f (diff) |
Merge pull request #517 from tiran/debug-uninit
Allow overrides of MI_DEBUG memory constants
Diffstat (limited to 'include')
-rw-r--r-- | include/mimalloc-types.h | 6 |
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 |