aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ltests.h b/ltests.h
index b550fd92..48971eef 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.18 2006/06/05 19:35:57 roberto Exp roberto $ 2** $Id: ltests.h,v 2.19 2007/09/30 13:09:43 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*/
@@ -30,19 +30,19 @@ typedef struct Memcontrol {
30 unsigned long memlimit; 30 unsigned long memlimit;
31} Memcontrol; 31} Memcontrol;
32 32
33LUAI_DATA Memcontrol memcontrol; 33LUAI_DATA Memcontrol l_memcontrol;
34 34
35 35
36/* 36/*
37** generic variable for debug tricks 37** generic variable for debug tricks
38*/ 38*/
39LUAI_DATA int Trick; 39LUAI_DATA int l_Trick;
40 40
41 41
42void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); 42void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize);
43 43
44#ifdef lua_c 44#ifdef lua_c
45#define luaL_newstate() lua_newstate(debug_realloc, &memcontrol) 45#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol)
46#endif 46#endif
47 47
48 48