mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Overload operator new and delete in test.
This commit is contained in:
parent
cef972fe25
commit
09304390dd
@ -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(;;)
|
||||
|
Loading…
Reference in New Issue
Block a user