lua_gc (L, LUA_GCCOLLECT, 0);
}
+void
+LuaState::collect_garbage_step () {
+ lua_gc (L, LUA_GCSTEP, 0);
+}
+
+void
+LuaState::tweak_rt_gc () {
+ /* GC runs same speed as memory allocation */
+ lua_gc (L, LUA_GCSETPAUSE, 100);
+ lua_gc (L, LUA_GCSETSTEPMUL, 100);
+}
+
void
LuaState::print (std::string text) {
Print (text); /* EMIT SIGNAL */