Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/luajit-rocks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'luajit-2.1/src/lj_api.c')
-rw-r--r--luajit-2.1/src/lj_api.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/luajit-2.1/src/lj_api.c b/luajit-2.1/src/lj_api.c
index 1f09284..042b0d9 100644
--- a/luajit-2.1/src/lj_api.c
+++ b/luajit-2.1/src/lj_api.c
@@ -1188,6 +1188,9 @@ LUA_API int lua_gc(lua_State *L, int what, int data)
res = (int)(g->gc.stepmul);
g->gc.stepmul = (MSize)data;
break;
+ case LUA_GCISRUNNING:
+ res = (g->gc.threshold != LJ_MAX_MEM);
+ break;
default:
res = -1; /* Invalid option. */
}