From febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 26 Nov 2014 13:00:44 +0400 Subject: Fix. Build with Lua 5.3.beta --- src/l52util.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src') 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 @@ #include "lua.h" #include "lauxlib.h" +#if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ + +#ifndef luaL_optint +# define luaL_optint luaL_optinteger +#endif + +#ifndef luaL_checkint +# define luaL_checkint luaL_checkinteger +#endif + +#endif + #if LUA_VERSION_NUM >= 502 // lua 5.2 // lua_rawgetp -- cgit v1.2.3-55-g6feb