aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 10:26:09 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-12-17 10:26:09 -0200
commitde6fc75d630b393d8b577ba03353abe527523d0f (patch)
tree385cb83b63b2ec409cde308c776e7c4c2073ff84 /ltests.h
parent2af0d3b4598060b1086884cfb879d39fa4e0c89a (diff)
downloadlua-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.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/ltests.h b/ltests.h
index d231a48a..796fb5a0 100644
--- a/ltests.h
+++ b/ltests.h
@@ -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
45void *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);
46 46
47#ifdef lua_c
48#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol)
49#endif
50
51 47
52typedef struct CallInfo *pCallInfo; 48typedef struct CallInfo *pCallInfo;
53 49
@@ -72,7 +68,9 @@ struct L_EXTRA { int lock; int *plock; };
72 68
73int luaB_opentests (lua_State *L); 69int 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