commit d281d23f8dbd3e29e805176d51161c943bc6196e
parent ec431ce5db562c62b3fc39d4475e96c4f448f863
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Tue, 13 Sep 2011 14:38:59 -0300
detail (make 'lua_assert' a valid expression even when turned off)
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/llimits.h b/llimits.h
@@ -1,5 +1,5 @@
/*
-** $Id: llimits.h,v 1.89 2011/05/05 19:43:14 roberto Exp roberto $
+** $Id: llimits.h,v 1.90 2011/07/02 15:57:25 roberto Exp roberto $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -62,9 +62,9 @@ typedef LUAI_UACNUMBER l_uacNumber;
/* to avoid problems with conditions too long */
#define lua_longassert(c) { if (!(c)) lua_assert(0); }
#else
-#define lua_assert(c) /* empty */
+#define lua_assert(c) ((void)0)
#define check_exp(c,e) (e)
-#define lua_longassert(c) /* empty */
+#define lua_longassert(c) ((void)0)
#endif
/*