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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/init.c b/lib/init.c
index 318004d..399aeaa 100644
--- a/lib/init.c
+++ b/lib/init.c
@@ -22,11 +22,16 @@ static void luaL_setfuncs(lua_State *L, const luaL_Reg *l, int nup)
#define luaL_checkint(L,n) ((int)luaL_checkinteger(L, (n)))
#endif
+#define luaL_checkaddr(L,n) ((AddressType)luaL_checkinteger(L, (n)))
#include "threads.c"
#include "queue.c"
+#if defined(_WIN32)
+__declspec(dllexport) int luaopen_libthreads(lua_State *L)
+#else
int luaopen_libthreads(lua_State *L)
+#endif
{
lua_newtable(L);
thread_init_pkg(L);