From 226c57fec0cc2a1b9457ec4204f13c5b7a108cc7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 10 Sep 2004 14:30:46 -0300 Subject: simpler configuration to turn on all asserts --- luaconf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'luaconf.h') diff --git a/luaconf.h b/luaconf.h index a9f0cff7..47e15b3f 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.10 2004/08/30 13:44:04 roberto Exp roberto $ +** $Id: luaconf.h,v 1.11 2004/08/30 18:35:14 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -60,7 +60,7 @@ #define LUA_FIRSTINDEX 1 /* assertions in Lua (mainly for internal debugging) */ -#define lua_assert(c) /* empty */ +#define lua_assert(c) ((void)0) /* }====================================================== */ @@ -123,7 +123,7 @@ #ifdef LUA_CORE /* LUA-C API assertions */ -#define api_check(L, o) /* empty */ +#define api_check(L, o) lua_assert(o) /* an unsigned integer with at least 32 bits */ -- cgit v1.2.3-55-g6feb