summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/debug.h b/src/debug.h
index da320d83f..1faeece8d 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -84,36 +84,6 @@ NORETURN extern void sanity_check_fn(
void debug_set_exception_handler();
/*
- DebugStack
-*/
-
-#define DEBUG_STACK_SIZE 50
-#define DEBUG_STACK_TEXT_SIZE 300
-
-extern void debug_stacks_print_to(std::ostream &os);
-extern void debug_stacks_print();
-
-struct DebugStack;
-class DebugStacker
-{
-public:
- DebugStacker(const char *text);
- ~DebugStacker();
-
-private:
- DebugStack *m_stack;
- bool m_overflowed;
-};
-
-#define DSTACK(msg) \
- DebugStacker __debug_stacker(msg);
-
-#define DSTACKF(...) \
- char __buf[DEBUG_STACK_TEXT_SIZE]; \
- snprintf(__buf, DEBUG_STACK_TEXT_SIZE, __VA_ARGS__); \
- DebugStacker __debug_stacker(__buf);
-
-/*
These should be put into every thread
*/