Overload operator new and delete in test.

This commit is contained in:
Bartosz Taudul 2018-06-20 19:45:20 +02:00
parent cef972fe25
commit 09304390dd

View File

@ -2,9 +2,20 @@
#include <mutex> #include <mutex>
#include <thread> #include <thread>
#include <shared_mutex> #include <shared_mutex>
#include <stdlib.h>
#include "../Tracy.hpp" #include "../Tracy.hpp"
#include "../common/TracySystem.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() void TestFunction()
{ {
for(;;) for(;;)