lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 9804467eeb9836bc147adffee411b21e6257da6b
parent a003e891252a2f6b4b7d1d006b20d2b306626caa
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Sat, 13 Mar 2004 10:31:47 -0300

detail

Diffstat:
Mlauxlib.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lauxlib.h b/lauxlib.h @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.h,v 1.61 2003/10/02 20:31:17 roberto Exp roberto $ +** $Id: lauxlib.h,v 1.62 2003/10/07 20:13:41 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -76,8 +76,8 @@ LUALIB_API lua_State *(luaL_newstate) (void); ** =============================================================== */ -#define luaL_argcheck(L, cond,numarg,extramsg) if (!(cond)) \ - luaL_argerror(L, numarg,extramsg) +#define luaL_argcheck(L, cond,numarg,extramsg) \ + ((void)((cond) || luaL_argerror(L, numarg,extramsg))) #define luaL_checkstring(L,n) (luaL_checklstring(L, (n), NULL)) #define luaL_optstring(L,n,d) (luaL_optlstring(L, (n), (d), NULL)) #define luaL_checkint(L,n) ((int)luaL_checkinteger(L, n))