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
diff options
context:
space:
mode:
Diffstat (limited to 'lib/init.c')
-rw-r--r--lib/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/init.c b/lib/init.c
index 4e9bed6..318004d 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -17,6 +17,12 @@ static void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup)
}
#endif
+#if LUA_VERSION_NUM >= 503
+#define luaL_checklong(L,n) ((long)luaL_checkinteger(L, (n)))
+#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
+#endif
+
+
#include "threads.c"
#include "queue.c"