diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-13 13:21:52 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-13 13:21:52 -0300 |
| commit | 686e57cf9c61070ff961407e3304071e171542f4 (patch) | |
| tree | 902f64eb6a46bcd57d4d1140efd5bdcf7f1e501f /lapi.c | |
| parent | 06156e7575dee21026595a30dcf76f400c447a33 (diff) | |
| download | lua-686e57cf9c61070ff961407e3304071e171542f4.tar.gz lua-686e57cf9c61070ff961407e3304071e171542f4.tar.bz2 lua-686e57cf9c61070ff961407e3304071e171542f4.zip | |
GC local pause configurable
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 2.188 2013/08/27 18:53:35 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.189 2013/09/11 20:15:31 roberto Exp roberto $ |
| 3 | ** Lua API | 3 | ** Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -1086,6 +1086,11 @@ LUA_API int lua_gc (lua_State *L, int what, int data) { | |||
| 1086 | g->gcpause = data; | 1086 | g->gcpause = data; |
| 1087 | break; | 1087 | break; |
| 1088 | } | 1088 | } |
| 1089 | case LUA_GCSETLOCALPAUSE: { | ||
| 1090 | res = g->gclocalpause; | ||
| 1091 | g->gclocalpause = data; | ||
| 1092 | break; | ||
| 1093 | } | ||
| 1089 | case LUA_GCSETSTEPMUL: { | 1094 | case LUA_GCSETSTEPMUL: { |
| 1090 | res = g->gcstepmul; | 1095 | res = g->gcstepmul; |
| 1091 | g->gcstepmul = data; | 1096 | g->gcstepmul = data; |
