diff options
Diffstat (limited to 'lib/BLua.cc')
-rw-r--r-- | lib/BLua.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/BLua.cc b/lib/BLua.cc index 4642386..9e7057f 100644 --- a/lib/BLua.cc +++ b/lib/BLua.cc @@ -460,6 +460,7 @@ Lua * Lua::Father() { Lua * Lua::spawn_from_thread(lua_State * __L) { Lua * L = new Lua(__L); L->father = Father(); + return L; } void Lua::weaken() { @@ -1190,12 +1191,15 @@ void Lua::openlib(const String & libname, const luaL_reg *l, int nup) { luaL_openlib(L, libname.to_charp(), l, nup); } +/* ***TODO*** handle the new garbage collection system. */ + void Lua::setgcthreshold(int newthreshold) { // lua_setgcthreshold(L, newthreshold); } int Lua::getgcthreshold() { // return lua_getgcthreshold(L); + return 0; } int Lua::getgccount() { |