diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-30 08:09:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-30 08:09:41 +0200 |
commit | bd6b90359c654f4c75964755e476a8bfd90114ba (patch) | |
tree | 2c3322587dfd845efc1332feed6708b9f02a9f69 /src/debug.h | |
parent | 43f9e948a128606ba4d446b79999ca8718b4456a (diff) | |
download | minetest-bd6b90359c654f4c75964755e476a8bfd90114ba.tar.gz minetest-bd6b90359c654f4c75964755e476a8bfd90114ba.tar.bz2 minetest-bd6b90359c654f4c75964755e476a8bfd90114ba.zip |
Remove DSTACK support (#6346)
Debugstacks is not useful, we don't really use it, the DebugStack is not pertinent, gdb and lldb are better if we really want to debug.
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 30 |
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 */ |