diff options
author | Leon Bottou <leon@bottou.org> | 2013-04-11 23:31:09 +0400 |
---|---|---|
committer | Leon Bottou <leon@bottou.org> | 2013-08-11 00:21:46 +0400 |
commit | 962e1df4a7035141ee115e7d2543dc2db0f92fce (patch) | |
tree | a37688a0e1b77b2e3ccdf9f2c84bf245b40448f1 /init.c | |
parent | c90103da149e9f048517e89d9c88bc949fb864d1 (diff) |
luaopen_xxx functions need LUA_EXTERNC
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -46,7 +46,9 @@ static void luaTorchArgErrorHandlerFunction(int argNumber, const char *msg) luaL_argcheck(globalL, 0, argNumber, msg); } -DLL_EXPORT int luaopen_libtorch(lua_State *L) +LUA_EXTERNC DLL_EXPORT int luaopen_libtorch(lua_State *L); + +int luaopen_libtorch(lua_State *L) { globalL = L; THSetErrorHandler(luaTorchErrorHandlerFunction); |