diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-09-13 14:39:23 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-09-13 14:39:23 -0300 |
| commit | d281d23f8dbd3e29e805176d51161c943bc6196e (patch) | |
| tree | 3f263aa7a13b30ea144b12094feb292aeb3aafbf | |
| parent | ec431ce5db562c62b3fc39d4475e96c4f448f863 (diff) | |
| download | lua-d281d23f8dbd3e29e805176d51161c943bc6196e.tar.gz lua-d281d23f8dbd3e29e805176d51161c943bc6196e.tar.bz2 lua-d281d23f8dbd3e29e805176d51161c943bc6196e.zip | |
detail (make 'lua_assert' a valid expression even when turned off)
| -rw-r--r-- | llimits.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llimits.h,v 1.89 2011/05/05 19:43:14 roberto Exp roberto $ | 2 | ** $Id: llimits.h,v 1.90 2011/07/02 15:57:25 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 | */ |
| @@ -62,9 +62,9 @@ typedef LUAI_UACNUMBER l_uacNumber; | |||
| 62 | /* to avoid problems with conditions too long */ | 62 | /* to avoid problems with conditions too long */ |
| 63 | #define lua_longassert(c) { if (!(c)) lua_assert(0); } | 63 | #define lua_longassert(c) { if (!(c)) lua_assert(0); } |
| 64 | #else | 64 | #else |
| 65 | #define lua_assert(c) /* empty */ | 65 | #define lua_assert(c) ((void)0) |
| 66 | #define check_exp(c,e) (e) | 66 | #define check_exp(c,e) (e) |
| 67 | #define lua_longassert(c) /* empty */ | 67 | #define lua_longassert(c) ((void)0) |
| 68 | #endif | 68 | #endif |
| 69 | 69 | ||
| 70 | /* | 70 | /* |
