We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b28adf6 commit f02ddc3Copy full SHA for f02ddc3
src/luasimdjson.h
@@ -1,20 +1,26 @@
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
9
extern "C" {
10
static int parse(lua_State*);
11
static int parse_file(lua_State*);
12
static int active_implementation(lua_State*);
13
static int ParsedObject_open(lua_State*);
14
static int ParsedObject_open_file(lua_State*);
15
-
16
static const struct luaL_Reg luasimdjson[] = {
17
{"parse", parse},
18
{"parseFile", parse_file},
19
{"activeImplementation", active_implementation},
20
{"open", ParsedObject_open},
21
{"openFile", ParsedObject_open_file},
22
23
{NULL, NULL},
24
};
- int luaopen_simdjson (lua_State*);
25
+ LUASIMDJSON_EXPORT int luaopen_simdjson(lua_State*);
26
}
0 commit comments