yet another multi-ABI bundle installer fix
[ardour.git] / libs / lua / luastate.cc
index 546b02a006d8afcf1aa89da1d7abf0960d7f4df7..3b8a7ae25a12de20846f764f35c98d1e80b61cfb 100644 (file)
@@ -76,6 +76,17 @@ LuaState::collect_garbage () {
        lua_gc (L, LUA_GCCOLLECT, 0);
 }
 
+void
+LuaState::collect_garbage_step () {
+       lua_gc (L, LUA_GCSTEP, 0);
+}
+
+void
+LuaState::tweak_rt_gc () {
+       //lua_gc (L, LUA_GCSETPAUSE, 20);
+       lua_gc (L, LUA_GCSETSTEPMUL, 100);
+}
+
 void
 LuaState::print (std::string text) {
        Print (text); /* EMIT SIGNAL */