diff options
Diffstat (limited to 'libs/lua/LuaBridge/detail/dump.h')
-rw-r--r-- | libs/lua/LuaBridge/detail/dump.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/lua/LuaBridge/detail/dump.h b/libs/lua/LuaBridge/detail/dump.h index 82f6a45ac1..b9b79ce19d 100644 --- a/libs/lua/LuaBridge/detail/dump.h +++ b/libs/lua/LuaBridge/detail/dump.h @@ -1,7 +1,7 @@ #include <sstream> #include <string> -std::string dumpLuaState(lua_State *L) { +static std::string dumpLuaState(lua_State *L) { std::stringstream ostr; int i; int top = lua_gettop(L); @@ -20,7 +20,7 @@ std::string dumpLuaState(lua_State *L) { ostr << " " << i << ": " << lua_tonumber(L, i) << "\n"; break; default: - ostr << " " << i << ": TYPE=" << lua_typename(L, t) << "\n"; + ostr << " " << i << ": TYPE=" << lua_typename(L, t) << ": " << lua_topointer(L, i)<< "\n"; break; } } |