From d281d23f8dbd3e29e805176d51161c943bc6196e Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 13 Sep 2011 14:39:23 -0300 Subject: [PATCH] detail (make 'lua_assert' a valid expression even when turned off) --- llimits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llimits.h b/llimits.h index 9b9547b5..67f7df54 100644 --- 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 /*