diff options
Diffstat (limited to 'c-api')
| -rw-r--r-- | c-api/compat-5.3.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index 6f66dad..de6c402 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h | |||
| @@ -395,12 +395,32 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname, | |||
| 395 | 395 | ||
| 396 | 396 | ||
| 397 | 397 | ||
| 398 | /* declarations for Lua 5.5 */ | ||
| 399 | #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 505 | ||
| 400 | |||
| 401 | /* | ||
| 402 | ** Internal assertions for in-house debugging | ||
| 403 | */ | ||
| 404 | #if defined LUAI_ASSERT | ||
| 405 | # undef NDEBUG | ||
| 406 | # include <assert.h> | ||
| 407 | # define lua_assert(c) assert(c) | ||
| 408 | #endif | ||
| 409 | |||
| 410 | #if !defined(lua_assert) | ||
| 411 | # define lua_assert(c) ((void)0) | ||
| 412 | #endif | ||
| 413 | |||
| 414 | #endif /* Lua 5.5 only */ | ||
| 415 | |||
| 416 | |||
| 417 | |||
| 398 | /* other Lua versions */ | 418 | /* other Lua versions */ |
| 399 | #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 504 | 419 | #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 505 |
| 400 | 420 | ||
| 401 | # error "unsupported Lua version (i.e. not Lua 5.1, 5.2, 5.3, or 5.4)" | 421 | # error "unsupported Lua version (i.e. not Lua 5.1, 5.2, 5.3, 5.4, or 5.5)" |
| 402 | 422 | ||
| 403 | #endif /* other Lua versions except 5.1, 5.2, 5.3, and 5.4 */ | 423 | #endif /* other Lua versions except 5.1, 5.2, 5.3, 5.4, and 5.5 */ |
| 404 | 424 | ||
| 405 | 425 | ||
| 406 | 426 | ||
