diff options
| author | tobil4sk <tobil4sk@outlook.com> | 2026-03-16 15:24:15 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-16 12:24:15 -0300 |
| commit | 9c6f75a88db1462ff655dc006588b25d3bc2a5be (patch) | |
| tree | 42aacefaaac5dac98b6282b1b98462703d383a7a /c-api | |
| parent | 1411206585364ae98736e74af96163adc7fe504f (diff) | |
| download | lua-compat-5.3-9c6f75a88db1462ff655dc006588b25d3bc2a5be.tar.gz lua-compat-5.3-9c6f75a88db1462ff655dc006588b25d3bc2a5be.tar.bz2 lua-compat-5.3-9c6f75a88db1462ff655dc006588b25d3bc2a5be.zip | |
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 | ||
