From de6fc75d630b393d8b577ba03353abe527523d0f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 17 Dec 2009 10:26:09 -0200 Subject: several configuration options that do not change often moved out of luaconf.h and into more internal files --- ltests.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index d231a48a..796fb5a0 100644 --- a/ltests.h +++ b/ltests.h @@ -1,5 +1,5 @@ /* -** $Id: ltests.h,v 2.27 2009/12/14 15:27:30 roberto Exp roberto $ +** $Id: ltests.h,v 2.28 2009/12/16 16:42:58 roberto Exp roberto $ ** Internal Header for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -44,10 +44,6 @@ void *l_Trick; void *debug_realloc (void *ud, void *block, size_t osize, size_t nsize); -#ifdef lua_c -#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) -#endif - typedef struct CallInfo *pCallInfo; @@ -72,7 +68,9 @@ struct L_EXTRA { int lock; int *plock; }; int luaB_opentests (lua_State *L); -#ifdef lua_c + +#if defined(lua_c) +#define luaL_newstate() lua_newstate(debug_realloc, &l_memcontrol) #define luaL_openlibs(L) { (luaL_openlibs)(L); luaB_opentests(L); } #endif -- cgit v1.2.3-55-g6feb