diff options
author | daan <daanl@outlook.com> | 2019-07-04 14:46:53 -0700 |
---|---|---|
committer | daan <daanl@outlook.com> | 2019-07-04 14:46:53 -0700 |
commit | 983c96a238e42a49cbbae0b6d64af69f623452dd (patch) | |
tree | d10c39bed01cbdb2b008211cef48e59e46c79e5c /include/mimalloc-internal.h | |
parent | 663769c512a09ae75fd73fb89003bfe51fd82ef3 (diff) | |
parent | 5ff037f8f8624deafda48a6c15b2e848cfbd1b6c (diff) |
Merge branch 'dev' into dev-exp
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r-- | include/mimalloc-internal.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h index 3e0df1e..b252637 100644 --- a/include/mimalloc-internal.h +++ b/include/mimalloc-internal.h @@ -14,12 +14,19 @@ terms of the MIT license. A copy of the license can be found in the file #define MI_TLS_RECURSE_GUARD #endif +#if (MI_DEBUG>0) +#define mi_trace_message(...) _mi_trace_message(__VA_ARGS__) +#else +#define mi_trace_message(...) +#endif + // "options.c" void _mi_fprintf(FILE* out, const char* fmt, ...); void _mi_error_message(const char* fmt, ...); void _mi_warning_message(const char* fmt, ...); void _mi_verbose_message(const char* fmt, ...); +void _mi_trace_message(const char* fmt, ...); // "init.c" extern mi_stats_t _mi_stats_main; @@ -119,6 +126,11 @@ bool _mi_page_is_valid(mi_page_t* page); Inlined definitions ----------------------------------------------------------- */ #define UNUSED(x) (void)(x) +#if (MI_DEBUG>0) +#define UNUSED_RELEASE(x) +#else +#define UNUSED_RELEASE(x) UNUSED(x) +#endif #define MI_INIT4(x) x(),x(),x(),x() #define MI_INIT8(x) MI_INIT4(x),MI_INIT4(x) |