summaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-03-15 18:04:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-03-15 18:04:54 -0300
commit48a8d781020ec86e9870cdca2f5276b30cd20fa4 (patch)
tree9db420ebe8846be2a604b052f3e3060840ca3770 /ltests.h
parenta4e1230f95223f2106cf0e118426ba91f1017d89 (diff)
downloadlua-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.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ltests.h b/ltests.h
index 648b351f..934aad47 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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
36extern Memcontrol memcontrol; 36extern Memcontrol memcontrol;
37 37
38
39/*
40** generic variable for debug tricks
41*/
42extern int Trick;
43
44
38void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); 45void *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
45void luaC_checkall (lua_State *L); 52int lua_checkmemory (lua_State *L);
46 53
47 54
48/* test for lock/unlock */ 55/* test for lock/unlock */