mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
keep dbg entries in release build to allow linking with both
This commit is contained in:
parent
ae6491f201
commit
e9c5b31b1c
4 changed files with 7 additions and 12 deletions
|
@ -753,11 +753,7 @@ static inline uintptr_t _mi_thread_id(void) mi_attr_noexcept {
|
|||
// The big preprocessor macros that follow emit the 5 declarations with default
|
||||
// implementations for the first 4 versions so only the 5th needs to be implemented.
|
||||
// -------------------------------------------------------------------------------------------------------------
|
||||
#ifdef NDEBUG
|
||||
#define MI_DEBUG_ONLY(x)
|
||||
#else
|
||||
#define MI_DEBUG_ONLY(x) x
|
||||
#endif
|
||||
#define MI_DEBUG_ONLY(x) x // we still allow dbg entry points in release mode to enable linking with a release build
|
||||
|
||||
#define MI_ALLOC_API1(tp,name,tp0,arg0,tp1,arg1) \
|
||||
static tp mi_base_##name(tp0 arg0, tp1 arg1 MI_SOURCE_XPARAM) mi_attr_noexcept; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue