1 | #ifndef LUASOCKET_H |
2 | #define LUASOCKET_H |
3 | /*=========================================================================*\ |
4 | * LuaSocket toolkit |
5 | * Networking support for the Lua language |
6 | * Diego Nehab |
7 | * 9/11/1999 |
8 | \*=========================================================================*/ |
9 | #include "lua.h" |
10 | |
11 | /*-------------------------------------------------------------------------*\ |
12 | * Current socket library version |
13 | \*-------------------------------------------------------------------------*/ |
14 | #define LUASOCKET_VERSION "LuaSocket 3.0-rc1" |
15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" |
16 | |
17 | /*-------------------------------------------------------------------------*\ |
18 | * This macro prefixes all exported API functions |
19 | \*-------------------------------------------------------------------------*/ |
20 | #ifndef LUASOCKET_API |
21 | #if defined(WIN32) || defined(_WIN32) |
22 | # define LUASOCKET_API __declspec(dllexport) |
23 | #else |
24 | # define LUASOCKET_API __attribute__((visibility("default"))) |
25 | #endif |
26 | #endif |
27 | |
28 | /*-------------------------------------------------------------------------*\ |
29 | * Initializes the library. |
30 | \*-------------------------------------------------------------------------*/ |
31 | LUASOCKET_API int luaopen_socket_core(lua_State *L); |
32 | |
33 | #endif /* LUASOCKET_H */ |
34 | |