summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2011-05-16 21:47:50 +0100
committerCiaran Gultnieks <ciaran@ciarang.com>2011-05-16 21:47:50 +0100
commit29932d4bddad6a0ad4269606e38701d544784951 (patch)
treec218b87eff788ad3e848425ad21e20594865c395 /src/debug.h
parent8bba9cde5c2536812679855e145954929a054d48 (diff)
downloadminetest-29932d4bddad6a0ad4269606e38701d544784951.tar.gz
minetest-29932d4bddad6a0ad4269606e38701d544784951.tar.bz2
minetest-29932d4bddad6a0ad4269606e38701d544784951.zip
Get rid of all the string format warnings caused by the DSTACK macro
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug.h b/src/debug.h
index 5cc1e6c4d..234b7c74a 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -169,7 +169,10 @@ private:
bool m_overflowed;
};
-#define DSTACK(...)\
+#define DSTACK(msg)\
+ DebugStacker __debug_stacker(msg);
+
+#define DSTACKF(...)\
char __buf[DEBUG_STACK_TEXT_SIZE];\
snprintf(__buf,\
DEBUG_STACK_TEXT_SIZE, __VA_ARGS__);\