summaryrefslogtreecommitdiff
path: root/lib/gras_impl/debug.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gras_impl/debug.hpp')
-rw-r--r--lib/gras_impl/debug.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gras_impl/debug.hpp b/lib/gras_impl/debug.hpp
index 077ac5d..a817e12 100644
--- a/lib/gras_impl/debug.hpp
+++ b/lib/gras_impl/debug.hpp
@@ -17,6 +17,12 @@
#ifndef INCLUDED_LIBGRAS_IMPL_DEBUG_HPP
#define INCLUDED_LIBGRAS_IMPL_DEBUG_HPP
+//#define MALLOC_DEBUG
+#ifdef MALLOC_DEBUG
+#include <stdexcept>
+extern void *operator new(std::size_t n) throw (std::bad_alloc);
+#endif
+
#include <iostream>
#include <stdexcept>
#include <boost/current_function.hpp>