mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
clean up export macros
This commit is contained in:
parent
38a0f53ef7
commit
ae6491f201
9 changed files with 178 additions and 174 deletions
|
@ -1,5 +1,5 @@
|
|||
/* ----------------------------------------------------------------------------
|
||||
Copyright (c) 2018,2019 Microsoft Research, Daan Leijen
|
||||
Copyright (c) 2018-2020 Microsoft Research, Daan Leijen
|
||||
This is free software; you can redistribute it and/or modify it under the
|
||||
terms of the MIT license. A copy of the license can be found in the file
|
||||
"LICENSE" at the root of this distribution.
|
||||
|
@ -74,7 +74,7 @@ not accidentally mix pointers from different allocators).
|
|||
// Overload new operators
|
||||
// This requires including <mimalloc-new-delete.h> somewhere!
|
||||
// See also <https://www.modernescpp.com/index.php/overloading-operator-new-and-delete-2>
|
||||
#if !defined(NDEBUG) && defined(__cplusplus) && !defined(MI_NO_SOURCE_DEBUG)
|
||||
#if !defined(NDEBUG) && defined(__cplusplus) && !defined(MI_DEBUG_NO_SOURCE_LOC)
|
||||
#define new new(mi_source_loc(__FILE__,__LINE__))
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue