From e0e8e18ab20ee4815424832afe2cba958ec1b2f2 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Wed, 21 Aug 2013 20:06:37 +0200 Subject: cLuaState: Added LogStackTrace() and GetTypeText() utility functions --- source/LuaState.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/LuaState.h') 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; -- cgit v1.2.3