diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-31 13:28:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-31 13:28:45 -0300 |
commit | 36e1390631a4b89f0a8a3111978780de0d53466c (patch) | |
tree | 21fea050e98d3cf844377c58503ccd15e00a43db /lobject.h | |
parent | 8f0f54ec3835f5d1637ae2720e2b4de6a177574a (diff) | |
download | lua-36e1390631a4b89f0a8a3111978780de0d53466c.tar.gz lua-36e1390631a4b89f0a8a3111978780de0d53466c.tar.bz2 lua-36e1390631a4b89f0a8a3111978780de0d53466c.zip |
details.
Diffstat (limited to 'lobject.h')
-rw-r--r-- | lobject.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lobject.h,v 1.57 2000/03/29 20:19:20 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 1.58 2000/03/30 20:55:50 roberto Exp roberto $ |
3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -15,8 +15,8 @@ | |||
15 | #ifdef DEBUG | 15 | #ifdef DEBUG |
16 | #undef NDEBUG | 16 | #undef NDEBUG |
17 | #include <assert.h> | 17 | #include <assert.h> |
18 | #define LUA_INTERNALERROR(L,s) assert(0) | 18 | #define LUA_INTERNALERROR(L,s) assert(((void)s,0)) |
19 | #define LUA_ASSERT(L,c,s) assert(c) | 19 | #define LUA_ASSERT(L,c,s) assert(((void)s,(c))) |
20 | #else | 20 | #else |
21 | #define LUA_INTERNALERROR(L,s) /* empty */ | 21 | #define LUA_INTERNALERROR(L,s) /* empty */ |
22 | #define LUA_ASSERT(L,c,s) /* empty */ | 22 | #define LUA_ASSERT(L,c,s) /* empty */ |
@@ -24,10 +24,10 @@ | |||
24 | 24 | ||
25 | 25 | ||
26 | #ifdef DEBUG | 26 | #ifdef DEBUG |
27 | /* to avoid warnings and make sure is is really unused */ | 27 | /* to avoid warnings, and make sure value is really unused */ |
28 | #define UNUSED(x) (x=0, (void)x) | 28 | #define UNUSED(x) (x=0, (void)(x)) |
29 | #else | 29 | #else |
30 | #define UNUSED(x) (void)x /* to avoid warnings */ | 30 | #define UNUSED(x) ((void)(x)) /* to avoid warnings */ |
31 | #endif | 31 | #endif |
32 | 32 | ||
33 | 33 | ||