-
Notifications
You must be signed in to change notification settings - Fork 0
/
discordwrap.cpp
37 lines (31 loc) · 991 Bytes
/
discordwrap.cpp
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
27
28
29
30
31
32
33
34
35
36
37
#include "discordwrap.h"
#define _PRESENCE _OBJ( \
_BYTES \
_BYTES \
_I64 \
_I64 \
_BYTES \
_BYTES \
_BYTES \
_BYTES \
_BYTES \
_I32 \
_I32 \
_BYTES \
_BYTES \
_BYTES \
_I8)
#define _HANDLERS _OBJ( \
_FUN(_VOID, _BYTES _BYTES _BYTES _BYTES) \
_FUN(_VOID, _I32 _BYTES) \
_FUN(_VOID, _I32 _BYTES) \
_FUN(_VOID, _BYTES) \
_FUN(_VOID, _BYTES) \
_FUN(_VOID, _BYTES _BYTES _BYTES _BYTES))
DEFINE_PRIM(_VOID, initialize, _BYTES _HANDLERS _I32 _BYTES)
DEFINE_PRIM(_VOID, shutdown, _NO_ARG)
DEFINE_PRIM(_VOID, run_callbacks, _NO_ARG)
DEFINE_PRIM(_VOID, update_presence, _PRESENCE)
DEFINE_PRIM(_VOID, clear_presence, _NO_ARG)
DEFINE_PRIM(_VOID, respond, _BYTES _I32)
DEFINE_PRIM(_VOID, update_handlers, _HANDLERS)