Roberto Ierusalimschy 21 年之前
父節點
當前提交
9804467eeb
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      lauxlib.h

+ 3 - 3
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))