We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ccec28 commit 706c646Copy full SHA for 706c646
tests/runtime_tests.cpp
@@ -10,6 +10,8 @@ std::size_t num_allocations = 0u;
10
std::size_t double_delete = 0u;
11
bool memory_tracking = false;
12
13
+// NB: getting weird errors on MacOS when doing this
14
+#if !defined(__APPLE__)
15
void* operator new(size_t size)
16
{
17
if (memory_tracking && num_allocations == max_allocations) {
@@ -49,6 +51,7 @@ void operator delete(void* p) noexcept
49
51
50
52
std::free(p);
53
}
54
+#endif
55
56
struct memory_tracker {
57
std::size_t initial_allocations;
0 commit comments