summaryrefslogtreecommitdiff
path: root/libs/lua/LuaBridge/detail/dump.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-21 19:25:42 +0100
committerRobin Gareus <robin@gareus.org>2016-02-22 22:06:47 +0100
commit12a58015a3810ed9df4661cee88be2563ea3db4e (patch)
tree13ff54b946696364f9f7ea9484522f2174908aca /libs/lua/LuaBridge/detail/dump.h
parent5b40e073e9c973479c3d286a007c57e1e0fa3d0f (diff)
customize LuaBridge
* introduce boost::shared_ptr support * support enum & const * allow to add non-class member functions * STL iterators (vector, list, set, bitset & map) * support reference arguments (framecnt_t&) * add support for arrays of basic types (e.g. float*, int*) * fix compiler warnings
Diffstat (limited to 'libs/lua/LuaBridge/detail/dump.h')
-rw-r--r--libs/lua/LuaBridge/detail/dump.h4
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;
}
}