diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:26:09 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-12-17 10:26:09 -0200 |
commit | de6fc75d630b393d8b577ba03353abe527523d0f (patch) | |
tree | 385cb83b63b2ec409cde308c776e7c4c2073ff84 /ltests.h | |
parent | 2af0d3b4598060b1086884cfb879d39fa4e0c89a (diff) | |
download | lua-de6fc75d630b393d8b577ba03353abe527523d0f.tar.gz lua-de6fc75d630b393d8b577ba03353abe527523d0f.tar.bz2 lua-de6fc75d630b393d8b577ba03353abe527523d0f.zip |
several configuration options that do not change often moved out of
luaconf.h and into more internal files
Diffstat (limited to 'ltests.h')
-rw-r--r-- | ltests.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.h,v 2.27 2009/12/14 15:27:30 roberto Exp roberto $ | 2 | ** $Id: ltests.h,v 2.28 2009/12/16 16:42:58 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 | */ |
@@ -44,10 +44,6 @@ void *l_Trick; | |||
44 | 44 | ||
45 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); | 45 | void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); |
46 | 46 | ||
47 | #ifdef lua_c | ||
48 | #define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) | ||
49 | #endif | ||
50 | |||
51 | 47 | ||
52 | typedef struct CallInfo *pCallInfo; | 48 | typedef struct CallInfo *pCallInfo; |
53 | 49 | ||
@@ -72,7 +68,9 @@ struct L_EXTRA { int lock; int *plock; }; | |||
72 | 68 | ||
73 | int luaB_opentests (lua_State *L); | 69 | int luaB_opentests (lua_State *L); |
74 | 70 | ||
75 | #ifdef lua_c | 71 | |
72 | #if defined(lua_c) | ||
73 | #define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) | ||
76 | #define luaL_openlibs(L) { (luaL_openlibs)(L); luaB_opentests(L); } | 74 | #define luaL_openlibs(L) { (luaL_openlibs)(L); luaB_opentests(L); } |
77 | #endif | 75 | #endif |
78 | 76 | ||