diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2018-06-20 20:45:20 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2018-06-20 20:45:20 +0300 |
commit | 09304390dd5f107afc0cef7e55e0a9846ef16885 (patch) | |
tree | 901ae8d8f0256f651140e81e7ab260072abc497c /test | |
parent | cef972fe2578fca28ce8071ccd0463ba8a3731f6 (diff) |
Overload operator new and delete in test.
Diffstat (limited to 'test')
-rw-r--r-- | test/test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.cpp b/test/test.cpp index 51bdb810..51f91413 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -2,9 +2,20 @@ #include <mutex> #include <thread> #include <shared_mutex> +#include <stdlib.h> #include "../Tracy.hpp" #include "../common/TracySystem.hpp" +void* operator new( std::size_t count ) +{ + return malloc( count ); +} + +void operator delete( void* ptr ) noexcept +{ + free( ptr ); +} + void TestFunction() { for(;;) |