diff options
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 */ |
