mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
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:
parent
5b40e073e9
commit
12a58015a3
8 changed files with 1137 additions and 23 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue