aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortobil4sk <tobil4sk@outlook.com>2026-03-16 15:24:15 +0000
committerGitHub <noreply@github.com>2026-03-16 12:24:15 -0300
commit9c6f75a88db1462ff655dc006588b25d3bc2a5be (patch)
tree42aacefaaac5dac98b6282b1b98462703d383a7a
parent1411206585364ae98736e74af96163adc7fe504f (diff)
downloadlua-compat-5.3-9c6f75a88db1462ff655dc006588b25d3bc2a5be.tar.gz
lua-compat-5.3-9c6f75a88db1462ff655dc006588b25d3bc2a5be.tar.bz2
lua-compat-5.3-9c6f75a88db1462ff655dc006588b25d3bc2a5be.zip
Update version checks for Lua 5.5HEADmaster
-rw-r--r--c-api/compat-5.3.h26
-rw-r--r--rockspecs/bit32-scm-1.rockspec2
-rw-r--r--rockspecs/compat53-scm-1.rockspec2
3 files changed, 25 insertions, 5 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
diff --git a/rockspecs/bit32-scm-1.rockspec b/rockspecs/bit32-scm-1.rockspec
index 78f9736..16e81b5 100644
--- a/rockspecs/bit32-scm-1.rockspec
+++ b/rockspecs/bit32-scm-1.rockspec
@@ -14,7 +14,7 @@ description = {
14 license = "MIT" 14 license = "MIT"
15} 15}
16dependencies = { 16dependencies = {
17 "lua >= 5.1, < 5.5" 17 "lua >= 5.1, < 5.6"
18} 18}
19build = { 19build = {
20 type = "builtin", 20 type = "builtin",
diff --git a/rockspecs/compat53-scm-1.rockspec b/rockspecs/compat53-scm-1.rockspec
index b0581f9..b72eff6 100644
--- a/rockspecs/compat53-scm-1.rockspec
+++ b/rockspecs/compat53-scm-1.rockspec
@@ -16,7 +16,7 @@ description = {
16 license = "MIT" 16 license = "MIT"
17} 17}
18dependencies = { 18dependencies = {
19 "lua >= 5.1, < 5.5", 19 "lua >= 5.1, < 5.6",
20 --"struct" -- make Roberto's struct module optional 20 --"struct" -- make Roberto's struct module optional
21} 21}
22build = { 22build = {