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
This commit is contained in:
Robin Gareus 2016-02-21 19:25:42 +01:00
parent 5b40e073e9
commit 12a58015a3
8 changed files with 1137 additions and 23 deletions

View file

@ -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;
}
}