From 48a8d781020ec86e9870cdca2f5276b30cd20fa4 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 15 Mar 2004 18:04:54 -0300 Subject: new tests to check memory consistency (for incremental GC) --- ltests.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 648b351f..934aad47 100644 --- a/ltests.h +++ b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 2.1 2003/12/10 12:13:36 roberto Exp roberto $ +** $Id: ltests.h,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -35,6 +35,13 @@ typedef struct Memcontrol { extern Memcontrol memcontrol; + +/* +** generic variable for debug tricks +*/ +extern int Trick; + + void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); #ifdef lua_c @@ -42,7 +49,7 @@ void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); #endif -void luaC_checkall (lua_State *L); +int lua_checkmemory (lua_State *L); /* test for lock/unlock */ -- cgit v1.2.3-55-g6feb