aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-09-08 13:53:56 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-09-08 13:53:56 -0300
commit1198d825306727fad23505858c371d21b9656d48 (patch)
treed407f731455767919a23bc20f1f87c6e8b34ec7d /llimits.h
parent6556fcfe5a90ca7d218489102788d1c1dac9b503 (diff)
downloadlua-1198d825306727fad23505858c371d21b9656d48.tar.gz
lua-1198d825306727fad23505858c371d21b9656d48.tar.bz2
lua-1198d825306727fad23505858c371d21b9656d48.zip
'lua_longassert' defined as an expression (instead of a command)
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llimits.h b/llimits.h
index a3e754e4..29872ca3 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.135 2015/06/09 14:21:00 roberto Exp roberto $ 2** $Id: llimits.h,v 1.136 2015/07/15 15:57:13 roberto Exp roberto $
3** Limits, basic types, and some other 'installation-dependent' definitions 3** Limits, basic types, and some other 'installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -84,7 +84,7 @@ typedef LUAI_UACINT l_uacInt;
84#if defined(lua_assert) 84#if defined(lua_assert)
85#define check_exp(c,e) (lua_assert(c), (e)) 85#define check_exp(c,e) (lua_assert(c), (e))
86/* to avoid problems with conditions too long */ 86/* to avoid problems with conditions too long */
87#define lua_longassert(c) { if (!(c)) lua_assert(0); } 87#define lua_longassert(c) ((c) ? (void)0 : lua_assert(0))
88#else 88#else
89#define lua_assert(c) ((void)0) 89#define lua_assert(c) ((void)0)
90#define check_exp(c,e) (e) 90#define check_exp(c,e) (e)