summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-06-05 21:18:52 +0200
committerMattes D <github@xoft.cz>2016-06-05 21:18:52 +0200
commit456ffa5bd608c88f5c9b75297fd505b29d0a02e7 (patch)
treeece066d1c1f8e5ebe4a0da9cf918e06094002188 /src/Bindings/LuaState.cpp
parentMerge pull request #3219 from QUSpilPrgm/master (diff)
parentBindings: Fixed cBoundingBox API. (diff)
downloadcuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.tar
cuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.tar.gz
cuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.tar.bz2
cuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.tar.lz
cuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.tar.xz
cuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.tar.zst
cuberite-456ffa5bd608c88f5c9b75297fd505b29d0a02e7.zip
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r--src/Bindings/LuaState.cpp1
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());