summaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-04-30 17:13:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-04-30 17:13:38 -0300
commitb4cd38ba6c148cf7db5deae6208b660c3417cac9 (patch)
tree8818b5e364c8ad5489a9755d3fc24110bccfdfe2 /ltests.h
parent079facab40542ff2e6be9ecc254fd148772b47c9 (diff)
downloadlua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.gz
lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.tar.bz2
lua-b4cd38ba6c148cf7db5deae6208b660c3417cac9.zip
new scheme for configuration through `luaconf.h'
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ltests.h b/ltests.h
index 934aad47..c1f58d8d 100644
--- a/ltests.h
+++ b/ltests.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.h,v 2.2 2004/02/16 19:09:52 roberto Exp roberto $ 2** $Id: ltests.h,v 2.3 2004/03/15 21:04:54 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*/
@@ -19,6 +19,8 @@
19#include <assert.h> 19#include <assert.h>
20#define lua_assert(c) assert(c) 20#define lua_assert(c) assert(c)
21#define check_exp(c,e) (lua_assert(c), (e)) 21#define check_exp(c,e) (lua_assert(c), (e))
22#undef api_check
23#define api_check(L, o) lua_assert(o)
22 24
23 25
24/* to avoid warnings, and to make sure value is really unused */ 26/* to avoid warnings, and to make sure value is really unused */
@@ -63,7 +65,9 @@ extern int islocked;
63 65
64int luaB_opentests (lua_State *L); 66int luaB_opentests (lua_State *L);
65 67
66#define LUA_EXTRALIBS { "tests", luaB_opentests }, 68#undef LUA_EXTRALIBS
69#define LUA_EXTRALIBS { "tests", luaB_opentests },
70
67 71
68 72
69/* real main will be defined at `ltests.c' */ 73/* real main will be defined at `ltests.c' */