diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-11-29 17:45:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-11-29 17:45:37 -0200 |
commit | 6df197ec150a33907dec61b5ca506744543aaea3 (patch) | |
tree | 67b808c2467c951670ab6450b70976c08fcc3c4a /ltests.h | |
parent | 177807f21e67c7f747923378aa24054384cd2be5 (diff) | |
download | lua-6df197ec150a33907dec61b5ca506744543aaea3.tar.gz lua-6df197ec150a33907dec61b5ca506744543aaea3.tar.bz2 lua-6df197ec150a33907dec61b5ca506744543aaea3.zip |
some functions from test module must be exported
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 | ||
49 | extern Memcontrol l_memcontrol; | 49 | LUA_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 | ||
84 | int luaB_opentests (lua_State *L); | 84 | LUA_API int luaB_opentests (lua_State *L); |
85 | 85 | ||
86 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); | 86 | LUA_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) |