aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-09-10 14:30:46 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2004-09-10 14:30:46 -0300
commit226c57fec0cc2a1b9457ec4204f13c5b7a108cc7 (patch)
tree520797ca5f2070ff2c77a4e5756b63bb419dbd60 /luaconf.h
parent0de2065f4e7cbbbe301b07835b9dd0b1bd1a4bbb (diff)
downloadlua-226c57fec0cc2a1b9457ec4204f13c5b7a108cc7.tar.gz
lua-226c57fec0cc2a1b9457ec4204f13c5b7a108cc7.tar.bz2
lua-226c57fec0cc2a1b9457ec4204f13c5b7a108cc7.zip
simpler configuration to turn on all asserts
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/luaconf.h b/luaconf.h
index a9f0cff7..47e15b3f 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.10 2004/08/30 13:44:04 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.11 2004/08/30 18:35:14 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -60,7 +60,7 @@
60#define LUA_FIRSTINDEX 1 60#define LUA_FIRSTINDEX 1
61 61
62/* assertions in Lua (mainly for internal debugging) */ 62/* assertions in Lua (mainly for internal debugging) */
63#define lua_assert(c) /* empty */ 63#define lua_assert(c) ((void)0)
64 64
65/* }====================================================== */ 65/* }====================================================== */
66 66
@@ -123,7 +123,7 @@
123#ifdef LUA_CORE 123#ifdef LUA_CORE
124 124
125/* LUA-C API assertions */ 125/* LUA-C API assertions */
126#define api_check(L, o) /* empty */ 126#define api_check(L, o) lua_assert(o)
127 127
128 128
129/* an unsigned integer with at least 32 bits */ 129/* an unsigned integer with at least 32 bits */