Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/threads-ffi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRonan Collobert <locronan@fb.com>2017-04-19 08:31:03 +0300
committerRonan Collobert <locronan@fb.com>2017-04-19 08:31:03 +0300
commitac9cf106d55f3c2441064d79162b1cb9a8b29189 (patch)
treec31a187bb5460695f0be2dbbc770df805ce1bc8b /lib
parentd371549d4532a77beb935e20540d2ecbb72d0a8f (diff)
luaL_setfuncs detection more robust
Diffstat (limited to 'lib')
-rw-r--r--lib/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/init.c b/lib/init.c
index 021f38c..be88263 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -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");