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 | 36e4c9a43b53dac52b15110888fed8771fddd404 (patch) | |
tree | 8801a6f2a34ce8db6087ff9dee4f78ac0db773ea | |
parent | b38c39e0cddea4c512a8af6116ca767df8411dd6 (diff) |
luaopen_xxx functions need LUA_EXTERNC
-rw-r--r-- | init.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -104,7 +104,9 @@ #include "generic/L1Cost.c" #include "THGenerateFloatTypes.h" -DLL_EXPORT int luaopen_libnn(lua_State *L) +LUA_EXTERNC DLL_EXPORT int luaopen_libnn(lua_State *L); + +int luaopen_libnn(lua_State *L) { lua_newtable(L); lua_pushvalue(L, -1); |