Explorar o código

'lua_assert' can be empty when assertions are off

Roberto Ierusalimschy %!s(int64=15) %!d(string=hai) anos
pai
achega
ad2b5decc8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      llimits.h

+ 2 - 2
llimits.h

@@ -1,5 +1,5 @@
 /*
 /*
-** $Id: llimits.h,v 1.78 2010/04/19 17:40:13 roberto Exp roberto $
+** $Id: llimits.h,v 1.79 2010/04/29 17:31:31 roberto Exp roberto $
 ** Limits, basic types, and some other `installation-dependent' definitions
 ** Limits, basic types, and some other `installation-dependent' definitions
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -60,7 +60,7 @@ typedef LUAI_UACNUMBER l_uacNumber;
 #if defined(lua_assert)
 #if defined(lua_assert)
 #define check_exp(c,e)		(lua_assert(c), (e))
 #define check_exp(c,e)		(lua_assert(c), (e))
 #else
 #else
-#define lua_assert(c)		((void)0)
+#define lua_assert(c)		/* empty */
 #define check_exp(c,e)		(e)
 #define check_exp(c,e)		(e)
 #endif
 #endif