summaryrefslogtreecommitdiffstats
path: root/source/LuaState.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-21 20:06:37 +0200
committermadmaxoft <github@xoft.cz>2013-08-21 20:06:37 +0200
commite0e8e18ab20ee4815424832afe2cba958ec1b2f2 (patch)
tree15881f9f7d23221ea2ca0cedaf591f7e86b4fff9 /source/LuaState.h
parentIgnoring all memdump files. (diff)
downloadcuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.tar
cuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.tar.gz
cuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.tar.bz2
cuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.tar.lz
cuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.tar.xz
cuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.tar.zst
cuberite-e0e8e18ab20ee4815424832afe2cba958ec1b2f2.zip
Diffstat (limited to 'source/LuaState.h')
-rw-r--r--source/LuaState.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/LuaState.h b/source/LuaState.h
index 0eae8206d..aa2a4af0f 100644
--- a/source/LuaState.h
+++ b/source/LuaState.h
@@ -782,6 +782,12 @@ public:
/// If the status is nonzero, prints the text on the top of Lua stack and returns true
static bool ReportErrors(lua_State * a_LuaState, int status);
+ /// Logs all items in the current stack trace to the server console
+ void LogStackTrace(void);
+
+ /// Returns the type of the item on the specified position in the stack
+ AString GetTypeText(int a_StackPos);
+
protected:
lua_State * m_LuaState;