diff options
| -rw-r--r-- | c-api/compat-5.3.h | 26 | ||||
| -rw-r--r-- | rockspecs/bit32-scm-1.rockspec | 2 | ||||
| -rw-r--r-- | rockspecs/compat53-scm-1.rockspec | 2 |
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 | } |
| 16 | dependencies = { | 16 | dependencies = { |
| 17 | "lua >= 5.1, < 5.5" | 17 | "lua >= 5.1, < 5.6" |
| 18 | } | 18 | } |
| 19 | build = { | 19 | build = { |
| 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 | } |
| 18 | dependencies = { | 18 | dependencies = { |
| 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 | } |
| 22 | build = { | 22 | build = { |
