forked from FourierTransformer/lua-simdjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathluasimdjson.h
More file actions
26 lines (22 loc) · 680 Bytes
/
luasimdjson.h
File metadata and controls
26 lines (22 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <lua.hpp>
#ifdef _MSC_VER
#define LUASIMDJSON_EXPORT __declspec(dllexport)
#else
#define LUASIMDJSON_EXPORT __attribute__((visibility("default")))
#endif
extern "C" {
static int parse(lua_State*);
static int parse_file(lua_State*);
static int active_implementation(lua_State*);
static int ParsedObject_open(lua_State*);
static int ParsedObject_open_file(lua_State*);
static const struct luaL_Reg luasimdjson[] = {
{"parse", parse},
{"parseFile", parse_file},
{"activeImplementation", active_implementation},
{"open", ParsedObject_open},
{"openFile", ParsedObject_open_file},
{NULL, NULL},
};
LUASIMDJSON_EXPORT int luaopen_simdjson(lua_State*);
}