File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
#include <lua.hpp>
2
+
3
+ #ifdef _MSC_VER
4
+ #define LUASIMDJSON_EXPORT __declspec(dllexport)
5
+ #else
6
+ #define LUASIMDJSON_EXPORT extern
7
+ #endif
8
+
2
9
extern "C" {
3
10
static int parse (lua_State * );
4
11
static int parse_file (lua_State * );
5
12
static int active_implementation (lua_State * );
6
13
static int ParsedObject_open (lua_State * );
7
14
static int ParsedObject_open_file (lua_State * );
8
15
9
-
10
16
static const struct luaL_Reg luasimdjson [] = {
11
17
{"parse" , parse },
12
18
{"parseFile" , parse_file },
13
19
{"activeImplementation" , active_implementation },
14
20
{"open" , ParsedObject_open },
15
21
{"openFile" , ParsedObject_open_file },
16
-
22
+
17
23
{NULL , NULL },
18
24
};
19
- int luaopen_simdjson (lua_State * );
25
+ LUASIMDJSON_EXPORT int luaopen_simdjson (lua_State * );
20
26
}
You can’t perform that action at this time.
0 commit comments