diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2013-10-25 10:21:43 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2013-10-25 10:21:43 +0200 |
commit | e7f70c05b63356232957a3205c6c605f0839605b (patch) | |
tree | db25bb852064f49342eec51bbb948582a8e65338 /src | |
parent | e7006c3816ebe44a89fdc3a453bf9e33d96a525e (diff) | |
download | lanes-e7f70c05b63356232957a3205c6c605f0839605b.tar.gz lanes-e7f70c05b63356232957a3205c6c605f0839605b.tar.bz2 lanes-e7f70c05b63356232957a3205c6c605f0839605b.zip |
Fix windows build not exporting public 'deep' API
Diffstat (limited to 'src')
-rw-r--r-- | src/deep.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -9,9 +9,15 @@ | |||
9 | 9 | ||
10 | #include "lua.h" | 10 | #include "lua.h" |
11 | 11 | ||
12 | typedef void (*luaG_IdFunction)( lua_State *L, char const * const which); | 12 | #if (defined PLATFORM_WIN32) || (defined PLATFORM_POCKETPC) |
13 | #define LANES_API __declspec(dllexport) | ||
14 | #else | ||
15 | #define LANES_API | ||
16 | #endif // (defined PLATFORM_WIN32) || (defined PLATFORM_POCKETPC) | ||
13 | 17 | ||
14 | int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc); | 18 | typedef void (*luaG_IdFunction)( lua_State* L, char const* const which); |
15 | void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index); | ||
16 | 19 | ||
17 | #endif // __LANES_DEEP_H__ \ No newline at end of file | 20 | extern LANES_API int luaG_deep_userdata( lua_State* L, luaG_IdFunction idfunc); |
21 | extern LANES_API void* luaG_todeep( lua_State* L, luaG_IdFunction idfunc, int index); | ||
22 | |||
23 | #endif // __LANES_DEEP_H__ | ||