diff options
author | Ronan Collobert <locronan@fb.com> | 2017-04-19 08:31:03 +0300 |
---|---|---|
committer | Ronan Collobert <locronan@fb.com> | 2017-04-19 08:31:03 +0300 |
commit | ac9cf106d55f3c2441064d79162b1cb9a8b29189 (patch) | |
tree | c31a187bb5460695f0be2dbbc770df805ce1bc8b /lib | |
parent | d371549d4532a77beb935e20540d2ecbb72d0a8f (diff) |
luaL_setfuncs detection more robust
Diffstat (limited to 'lib')
-rw-r--r-- | lib/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,7 +1,7 @@ #include <lua.h> #include <lauxlib.h> -#if LUA_VERSION_NUM == 501 +#ifndef HAS_LUAL_SETFUNCS static void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup) { luaL_checkstack(L, nup+1, "too many upvalues"); |