diff options
| -rw-r--r-- | rockspecs/lua-llthreads2-compat-scm-0.rockspec | 2 | ||||
| -rw-r--r-- | rockspecs/lua-llthreads2-scm-0.rockspec | 2 | ||||
| -rw-r--r-- | src/l52util.h | 12 |
3 files changed, 14 insertions, 2 deletions
diff --git a/rockspecs/lua-llthreads2-compat-scm-0.rockspec b/rockspecs/lua-llthreads2-compat-scm-0.rockspec index bbb3ecd..c8b909b 100644 --- a/rockspecs/lua-llthreads2-compat-scm-0.rockspec +++ b/rockspecs/lua-llthreads2-compat-scm-0.rockspec | |||
| @@ -15,7 +15,7 @@ description = { | |||
| 15 | ]], | 15 | ]], |
| 16 | } | 16 | } |
| 17 | dependencies = { | 17 | dependencies = { |
| 18 | "lua >= 5.1, < 5.3", | 18 | "lua >= 5.1, < 5.4", |
| 19 | } | 19 | } |
| 20 | build = { | 20 | build = { |
| 21 | type = "builtin", | 21 | type = "builtin", |
diff --git a/rockspecs/lua-llthreads2-scm-0.rockspec b/rockspecs/lua-llthreads2-scm-0.rockspec index 0795eca..cd3a4a4 100644 --- a/rockspecs/lua-llthreads2-scm-0.rockspec +++ b/rockspecs/lua-llthreads2-scm-0.rockspec | |||
| @@ -15,7 +15,7 @@ description = { | |||
| 15 | ]], | 15 | ]], |
| 16 | } | 16 | } |
| 17 | dependencies = { | 17 | dependencies = { |
| 18 | "lua >= 5.1, < 5.3", | 18 | "lua >= 5.1, < 5.4", |
| 19 | } | 19 | } |
| 20 | build = { | 20 | build = { |
| 21 | type = "builtin", | 21 | type = "builtin", |
diff --git a/src/l52util.h b/src/l52util.h index 38a87db..92d9fb8 100644 --- a/src/l52util.h +++ b/src/l52util.h | |||
| @@ -4,6 +4,18 @@ | |||
| 4 | #include "lua.h" | 4 | #include "lua.h" |
| 5 | #include "lauxlib.h" | 5 | #include "lauxlib.h" |
| 6 | 6 | ||
| 7 | #if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ | ||
| 8 | |||
| 9 | #ifndef luaL_optint | ||
| 10 | # define luaL_optint luaL_optinteger | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #ifndef luaL_checkint | ||
| 14 | # define luaL_checkint luaL_checkinteger | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #endif | ||
| 18 | |||
| 7 | #if LUA_VERSION_NUM >= 502 // lua 5.2 | 19 | #if LUA_VERSION_NUM >= 502 // lua 5.2 |
| 8 | 20 | ||
| 9 | // lua_rawgetp | 21 | // lua_rawgetp |
