diff options
| -rw-r--r-- | lauxlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -165,7 +165,11 @@ LUALIB_API void (luaL_requiref) (lua_State *L, const char *modname, | |||
| 165 | 165 | ||
| 166 | 166 | ||
| 167 | /* push the value used to represent failure/error */ | 167 | /* push the value used to represent failure/error */ |
| 168 | #if defined(LUA_FAILISFALSE) | ||
| 169 | #define luaL_pushfail(L) lua_pushboolean(L, 0) | ||
| 170 | #else | ||
| 168 | #define luaL_pushfail(L) lua_pushnil(L) | 171 | #define luaL_pushfail(L) lua_pushnil(L) |
| 172 | #endif | ||
| 169 | 173 | ||
| 170 | 174 | ||
| 171 | 175 | ||
