diff options
-rw-r--r-- | lstate.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.h,v 2.121 2015/04/10 17:56:25 roberto Exp roberto $ | 2 | ** $Id: lstate.h,v 2.122 2015/06/01 16:34:37 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -109,7 +109,7 @@ typedef struct CallInfo { | |||
109 | typedef struct global_State { | 109 | typedef struct global_State { |
110 | lua_Alloc frealloc; /* function to reallocate memory */ | 110 | lua_Alloc frealloc; /* function to reallocate memory */ |
111 | void *ud; /* auxiliary data to 'frealloc' */ | 111 | void *ud; /* auxiliary data to 'frealloc' */ |
112 | lu_mem totalbytes; /* number of bytes currently allocated - GCdebt */ | 112 | l_mem totalbytes; /* number of bytes currently allocated - GCdebt */ |
113 | l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ | 113 | l_mem GCdebt; /* bytes allocated not yet compensated by the collector */ |
114 | lu_mem GCmemtrav; /* memory traversed by the GC */ | 114 | lu_mem GCmemtrav; /* memory traversed by the GC */ |
115 | lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ | 115 | lu_mem GCestimate; /* an estimate of the non-garbage memory in use */ |
@@ -212,7 +212,7 @@ union GCUnion { | |||
212 | 212 | ||
213 | 213 | ||
214 | /* actual number of total bytes allocated */ | 214 | /* actual number of total bytes allocated */ |
215 | #define gettotalbytes(g) ((g)->totalbytes + (g)->GCdebt) | 215 | #define gettotalbytes(g) cast(lu_mem, (g)->totalbytes + (g)->GCdebt) |
216 | 216 | ||
217 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); | 217 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); |
218 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); | 218 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); |