summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/debug.h b/debug.h
index 7fb97c7f..047741c2 100644
--- a/debug.h
+++ b/debug.h
@@ -139,4 +139,17 @@ extern std::ostream * warning_stream;
} // namespace ledger
+#ifdef DEBUG_ENABLED
+
+void * operator new(std::size_t) throw (std::bad_alloc);
+void * operator new[](std::size_t) throw (std::bad_alloc);
+void operator delete(void*) throw();
+void operator delete[](void*) throw();
+void * operator new(std::size_t, const std::nothrow_t&) throw();
+void * operator new[](std::size_t, const std::nothrow_t&) throw();
+void operator delete(void*, const std::nothrow_t&) throw();
+void operator delete[](void*, const std::nothrow_t&) throw();
+
+#endif // DEBUG_ENABLED
+
#endif // _DEBUG_H