1
0
Fork 0
mirror of https://github.com/lua/lua.git synced 2025-07-05 04:34:06 +00:00
Added macro LUA_FAILISFALSE to make easier to change the fail value
from nil to false.
This commit is contained in:
Roberto Ierusalimschy 2025-02-28 15:48:45 -03:00
parent ee99452158
commit cb88c1cd5d

View file

@ -165,7 +165,11 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname,
/* push the value used to represent failure/error */
#if defined(LUA_FAILISFALSE)
#define luaL_pushfail(L) lua_pushboolean(L, 0)
#else
#define luaL_pushfail(L) lua_pushnil(L)
#endif