diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-06 14:38:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-09-06 14:38:39 -0300 |
commit | a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43 (patch) | |
tree | eb96915b808cf929015452bd08ca1e5c571683ce /lapi.c | |
parent | 007b8c7a01eaa97d796561a19c7e9af1ec474495 (diff) | |
download | lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.tar.gz lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.tar.bz2 lua-a04e0ffdb9be42a77b5657f46cac8d7faa5a0f43.zip |
Rename of fields in global state that control GC
All fields in the global state that control the pace of the garbage
collector prefixed with 'GC'.
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1190,11 +1190,11 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
1190 | } | 1190 | } |
1191 | case LUA_GCCOUNT: { | 1191 | case LUA_GCCOUNT: { |
1192 | /* GC values are expressed in Kbytes: #bytes/2^10 */ | 1192 | /* GC values are expressed in Kbytes: #bytes/2^10 */ |
1193 | res = cast_int(g->totalbytes >> 10); | 1193 | res = cast_int(g->GCtotalbytes >> 10); |
1194 | break; | 1194 | break; |
1195 | } | 1195 | } |
1196 | case LUA_GCCOUNTB: { | 1196 | case LUA_GCCOUNTB: { |
1197 | res = cast_int(g->totalbytes & 0x3ff); | 1197 | res = cast_int(g->GCtotalbytes & 0x3ff); |
1198 | break; | 1198 | break; |
1199 | } | 1199 | } |
1200 | case LUA_GCSTEP: { | 1200 | case LUA_GCSTEP: { |