aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/ltests.h b/ltests.h
index d5d798d7..6a55e2db 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.40 2014/10/01 11:54:56 roberto Exp roberto $ 2** $Id: ltests.h,v 2.41 2014/11/24 14:56:56 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*/
@@ -46,7 +46,7 @@ typedef struct Memcontrol {
46 unsigned long objcount[LUA_NUMTAGS]; 46 unsigned long objcount[LUA_NUMTAGS];
47} Memcontrol; 47} Memcontrol;
48 48
49extern Memcontrol l_memcontrol; 49LUA_API Memcontrol l_memcontrol;
50 50
51 51
52/* 52/*
@@ -81,9 +81,10 @@ struct L_EXTRA { int lock; int *plock; };
81 81
82 82
83 83
84int luaB_opentests (lua_State *L); 84LUA_API int luaB_opentests (lua_State *L);
85 85
86void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); 86LUA_API void *debug_realloc (void *ud, void *block,
87 size_t osize, size_t nsize);
87 88
88#if defined(lua_c) 89#if defined(lua_c)
89#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) 90#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol)