X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdebug.h;h=5150758be13506d070b9ed8cca5bcd6ed4fd3f1b;hb=92ae11bd3b5e95ff837f98463931e7772c455ad3;hp=234b7c74afd4dbdd6290ea792217267f93cb0a72;hpb=07ff1da6ae0728fa2f7bbf5d0e188e986344a0db;p=oweals%2Fminetest.git diff --git a/src/debug.h b/src/debug.h index 234b7c74a..5150758be 100644 --- a/src/debug.h +++ b/src/debug.h @@ -85,7 +85,7 @@ public: return c; } - int xsputn(const char *s, int n) + std::streamsize xsputn(const char *s, std::streamsize n) { for(int i=0; i g_debug_stacks; extern JMutex g_debug_stacks_mutex; extern void debug_stacks_init(); +extern void debug_stacks_print_to(std::ostream &os); extern void debug_stacks_print(); class DebugStacker @@ -235,10 +237,9 @@ private: #if CATCH_UNHANDLED_EXCEPTIONS == 1 #define BEGIN_PORTABLE_DEBUG_EXCEPTION_HANDLER try{ - #define END_PORTABLE_DEBUG_EXCEPTION_HANDLER\ + #define END_PORTABLE_DEBUG_EXCEPTION_HANDLER(logstream)\ }catch(std::exception &e){\ - dstream<