diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-03-15 18:04:54 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-03-15 18:04:54 -0300 |
| commit | 48a8d781020ec86e9870cdca2f5276b30cd20fa4 (patch) | |
| tree | 9db420ebe8846be2a604b052f3e3060840ca3770 /ltests.h | |
| parent | a4e1230f95223f2106cf0e118426ba91f1017d89 (diff) | |
| download | lua-48a8d781020ec86e9870cdca2f5276b30cd20fa4.tar.gz lua-48a8d781020ec86e9870cdca2f5276b30cd20fa4.tar.bz2 lua-48a8d781020ec86e9870cdca2f5276b30cd20fa4.zip | |
new tests to check memory consistency (for incremental GC)
Diffstat (limited to 'ltests.h')
| -rw-r--r-- | ltests.h | 11 |
1 files changed, 9 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.h,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $ |
| 3 | ** Internal Header for Debugging of the Lua Implementation | 3 | ** Internal Header for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -35,6 +35,13 @@ typedef struct Memcontrol { | |||
| 35 | 35 | ||
| 36 | extern Memcontrol memcontrol; | 36 | extern Memcontrol memcontrol; |
| 37 | 37 | ||
| 38 | |||
| 39 | /* | ||
| 40 | ** generic variable for debug tricks | ||
| 41 | */ | ||
| 42 | extern int Trick; | ||
| 43 | |||
| 44 | |||
| 38 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); | 45 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); |
| 39 | 46 | ||
| 40 | #ifdef lua_c | 47 | #ifdef lua_c |
| @@ -42,7 +49,7 @@ void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); | |||
| 42 | #endif | 49 | #endif |
| 43 | 50 | ||
| 44 | 51 | ||
| 45 | void luaC_checkall (lua_State *L); | 52 | int lua_checkmemory (lua_State *L); |
| 46 | 53 | ||
| 47 | 54 | ||
| 48 | /* test for lock/unlock */ | 55 | /* test for lock/unlock */ |
