From 09304390dd5f107afc0cef7e55e0a9846ef16885 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 20 Jun 2018 19:45:20 +0200 Subject: [PATCH] Overload operator new and delete in test. --- test/test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 #include #include +#include #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(;;)