diff options
| author | Stefan Boberg <[email protected]> | 2021-09-20 21:00:06 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-20 21:00:06 +0200 |
| commit | bee86ccf35480b1ae3066659b5b2acc3a5906db9 (patch) | |
| tree | e989a4fdc210c714ff078acb8fae2046f62a44f8 /zencore/include | |
| parent | Improved error handling in http.sys handler (diff) | |
| download | zen-bee86ccf35480b1ae3066659b5b2acc3a5906db9.tar.xz zen-bee86ccf35480b1ae3066659b5b2acc3a5906db9.zip | |
Made use of mimalloc controlled by define
When ZEN_USE_MIMALLOC is set to 0, mimalloc will not be used.
This is useful to diagnose issues with gflags and other generic analysis
tools which expect malloc/free to be used for memory management
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/zencore.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index 2b411af0e..f6093cb96 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -202,6 +202,10 @@ ZENCORE_API void zencore_forcelinktests(); } // namespace zen +#ifndef ZEN_USE_MIMALLOC +# define ZEN_USE_MIMALLOC 1 +#endif + ////////////////////////////////////////////////////////////////////////// #if ZEN_COMPILER_MSC |