aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lstate.h b/lstate.h
index e12ca154..6aa02889 100644
--- a/lstate.h
+++ b/lstate.h
@@ -274,10 +274,10 @@ struct CallInfo {
274typedef struct global_State { 274typedef struct global_State {
275 lua_Alloc frealloc; /* function to reallocate memory */ 275 lua_Alloc frealloc; /* function to reallocate memory */
276 void *ud; /* auxiliary data to 'frealloc' */ 276 void *ud; /* auxiliary data to 'frealloc' */
277 lu_mem totalbytes; /* number of bytes currently allocated */ 277 lu_mem GCtotalbytes; /* number of bytes currently allocated */
278 l_obj totalobjs; /* total number of objects allocated + GCdebt */ 278 l_obj GCtotalobjs; /* total number of objects allocated + GCdebt */
279 l_obj GCdebt; /* objects counted but not yet allocated */ 279 l_obj GCdebt; /* objects counted but not yet allocated */
280 l_obj marked; /* number of objects marked in a GC cycle */ 280 l_obj GCmarked; /* number of objects marked in a GC cycle */
281 l_obj GCmajorminor; /* auxiliary counter to control major-minor shifts */ 281 l_obj GCmajorminor; /* auxiliary counter to control major-minor shifts */
282 stringtable strt; /* hash table for strings */ 282 stringtable strt; /* hash table for strings */
283 TValue l_registry; 283 TValue l_registry;
@@ -412,7 +412,7 @@ union GCUnion {
412 412
413 413
414/* actual number of total objects allocated */ 414/* actual number of total objects allocated */
415#define gettotalobjs(g) ((g)->totalobjs - (g)->GCdebt) 415#define gettotalobjs(g) ((g)->GCtotalobjs - (g)->GCdebt)
416 416
417 417
418LUAI_FUNC void luaE_setdebt (global_State *g, l_obj debt); 418LUAI_FUNC void luaE_setdebt (global_State *g, l_obj debt);