new scheme for configuration through `luaconf.h'

This commit is contained in:
Roberto Ierusalimschy
2004-04-30 17:13:38 -03:00
parent 079facab40
commit b4cd38ba6c
34 changed files with 176 additions and 395 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: ltests.h,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $
** $Id: ltests.h,v 2.3 2004/03/15 21:04:54 roberto Exp roberto $
** Internal Header for Debugging of the Lua Implementation
** See Copyright Notice in lua.h
*/
@@ -19,6 +19,8 @@
#include <assert.h>
#define lua_assert(c) assert(c)
#define check_exp(c,e) (lua_assert(c), (e))
#undef api_check
#define api_check(L, o) lua_assert(o)
/* to avoid warnings, and to make sure value is really unused */
@@ -63,7 +65,9 @@ extern int islocked;
int luaB_opentests (lua_State *L);
#define LUA_EXTRALIBS { "tests", luaB_opentests },
#undef LUA_EXTRALIBS
#define LUA_EXTRALIBS { "tests", luaB_opentests },
/* real main will be defined at `ltests.c' */