aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/lua.h b/lua.h
index 32768561..5e2e08d9 100644
--- a/lua.h
+++ b/lua.h
@@ -325,7 +325,7 @@ LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont);
325 325
326 326
327/* 327/*
328** garbage-collection function and options 328** garbage-collection options
329*/ 329*/
330 330
331#define LUA_GCSTOP 0 331#define LUA_GCSTOP 0
@@ -337,6 +337,25 @@ LUA_API void (lua_warning) (lua_State *L, const char *msg, int tocont);
337#define LUA_GCISRUNNING 6 337#define LUA_GCISRUNNING 6
338#define LUA_GCGEN 7 338#define LUA_GCGEN 7
339#define LUA_GCINC 8 339#define LUA_GCINC 8
340#define LUA_GCSETPARAM 9
341
342
343/*
344** garbage-collection parameters
345*/
346/* parameters for generational mode */
347#define LUA_GCPMINORMUL 0 /* control minor collections */
348#define LUA_GCPMAJORMINOR 1 /* control shift major->minor */
349#define LUA_GCPMINORMAJOR 2 /* control shift minor->major */
350
351/* parameters for incremental mode */
352#define LUA_GCPPAUSE 3 /* size of pause between successive GCs */
353#define LUA_GCPSTEPMUL 4 /* GC "speed" */
354#define LUA_GCPSTEPSIZE 5 /* GC granularity */
355
356/* number of parameters */
357#define LUA_GCPN 6
358
340 359
341LUA_API int (lua_gc) (lua_State *L, int what, ...); 360LUA_API int (lua_gc) (lua_State *L, int what, ...);
342 361