From 3fd5938d6fa2e0a939e18437047d09baf13c572a Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Mon, 9 Feb 2026 03:57:38 +0000 Subject: [PATCH 1/4] Support lua 5.5 for bit32 --- rockspecs/bit32-scm-1.rockspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { license = "MIT" } dependencies = { - "lua >= 5.1, < 5.5" + "lua >= 5.1, < 5.6" } build = { type = "builtin", From 2ad418b4e35072e9e9e51f8e7ffa412bb3d25815 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Mon, 9 Feb 2026 03:58:38 +0000 Subject: [PATCH 2/4] Support lua 5.5 in compat53 --- rockspecs/compat53-scm-1.rockspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = { license = "MIT" } dependencies = { - "lua >= 5.1, < 5.5", + "lua >= 5.1, < 5.6", --"struct" -- make Roberto's struct module optional } build = { From 5fd829e8d3bfdf20e9bfb032b05ebaf350640fc0 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Mon, 9 Feb 2026 04:03:51 +0000 Subject: [PATCH 3/4] Fix header for lua 5.5 --- c-api/compat-5.3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index 6f66dad..d84c202 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h @@ -396,11 +396,11 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname, /* other Lua versions */ -#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 504 +#if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 505 -# error "unsupported Lua version (i.e. not Lua 5.1, 5.2, 5.3, or 5.4)" +# error "unsupported Lua version (i.e. not Lua 5.1, 5.2, 5.3, 5.4, or 5.5)" -#endif /* other Lua versions except 5.1, 5.2, 5.3, and 5.4 */ +#endif /* other Lua versions except 5.1, 5.2, 5.3, 5.4, and 5.5 */ From e7a3e282e20ccd02f78f794384de0ea3c484d986 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sat, 14 Feb 2026 16:53:56 +0000 Subject: [PATCH 4/4] Declare lua_assert macro for lua 5.5 This is required by liolib.c, lstrllib.c, and ltablib.c, but was removed from the lua 5.5 since it was never a public part of the api. --- c-api/compat-5.3.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/c-api/compat-5.3.h b/c-api/compat-5.3.h index d84c202..de6c402 100644 --- a/c-api/compat-5.3.h +++ b/c-api/compat-5.3.h @@ -395,6 +395,26 @@ COMPAT53_API void luaL_requiref (lua_State *L, const char *modname, +/* declarations for Lua 5.5 */ +#if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 505 + +/* +** Internal assertions for in-house debugging +*/ +#if defined LUAI_ASSERT +# undef NDEBUG +# include +# define lua_assert(c) assert(c) +#endif + +#if !defined(lua_assert) +# define lua_assert(c) ((void)0) +#endif + +#endif /* Lua 5.5 only */ + + + /* other Lua versions */ #if !defined(LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 || LUA_VERSION_NUM > 505