avoid use of 'ifdef/ifndef'; use 'defined' instead (simpler and

more powerful)
This commit is contained in:
Roberto Ierusalimschy
2011-05-25 11:12:28 -03:00
parent 6c8a32217a
commit aa13c591f5
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lualib.h,v 1.40 2010/06/10 21:29:47 roberto Exp roberto $
** $Id: lualib.h,v 1.41 2010/10/25 14:32:36 roberto Exp roberto $
** Lua standard libraries
** See Copyright Notice in lua.h
*/
@@ -50,7 +50,7 @@ LUALIB_API void (luaL_openlibs) (lua_State *L);
#ifndef lua_assert
#if !defined(lua_assert)
#define lua_assert(x) ((void)0)
#endif