From 8d8add37102648618e471555032fe911fcc8a3ce Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Wed, 18 Mar 2015 12:17:01 +0800 Subject: [PATCH] update sproto --- lualib-src/sproto/lsproto.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lualib-src/sproto/lsproto.c b/lualib-src/sproto/lsproto.c index 5e683566..7ed70d18 100644 --- a/lualib-src/sproto/lsproto.c +++ b/lualib-src/sproto/lsproto.c @@ -39,6 +39,13 @@ LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { #define luaL_newlib(L,l) (luaL_newlibtable(L,l), luaL_setfuncs(L,l,0)) #endif +#if LUA_VERSION_NUM < 503 + +// lua_isinteger is lua 5.3 api +#define lua_isinteger lua_isnumber + +#endif + static int lnewproto(lua_State *L) { size_t sz = 0;