Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2018-06-20 20:45:20 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2018-06-20 20:45:20 +0300
commit09304390dd5f107afc0cef7e55e0a9846ef16885 (patch)
tree901ae8d8f0256f651140e81e7ab260072abc497c /test
parentcef972fe2578fca28ce8071ccd0463ba8a3731f6 (diff)
Overload operator new and delete in test.
Diffstat (limited to 'test')
-rw-r--r--test/test.cpp11
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(;;)