diff options
author | Mattes D <github@xoft.cz> | 2016-06-05 17:20:50 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-06-05 17:20:50 +0200 |
commit | fbe98665245af8a552177d4a82ca0ba41b52a625 (patch) | |
tree | 7819551f10a4ffd9d6a6c97908e8e1b5a86633ae /src/Bindings/LuaState.cpp | |
parent | Merge pull request #3219 from QUSpilPrgm/master (diff) | |
download | cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.tar cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.tar.gz cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.tar.bz2 cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.tar.lz cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.tar.xz cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.tar.zst cuberite-fbe98665245af8a552177d4a82ca0ba41b52a625.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Bindings/LuaState.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp index e0551c550..f11e74e75 100644 --- a/src/Bindings/LuaState.cpp +++ b/src/Bindings/LuaState.cpp @@ -1656,6 +1656,7 @@ void cLuaState::LogStack(lua_State * a_LuaState, const char * a_Header) case LUA_TNUMBER: Printf(Value, "%f", static_cast<double>(lua_tonumber(a_LuaState, i))); break; case LUA_TSTRING: Printf(Value, "%s", lua_tostring(a_LuaState, i)); break; case LUA_TTABLE: Printf(Value, "%p", lua_topointer(a_LuaState, i)); break; + case LUA_TUSERDATA: Printf(Value, "%p (%s)", lua_touserdata(a_LuaState, i), tolua_typename(a_LuaState, i)); break; default: break; } LOGD(" Idx %d: type %d (%s) %s", i, Type, lua_typename(a_LuaState, Type), Value.c_str()); |