blob: 7c466eb63e66bb3a0d46519f69ab3b4a7e727b97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef API_H
#define API_H
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
/* compatibility layer: https://github.com/keplerproject/lua-compat-5.3 */
#include "compat/compat-5.3.h"
#define API_TYPE_FONT "Font"
#define API_TYPE_THREAD "Thread"
#define API_TYPE_CHANNEL "Channel"
#define API_TYPE_PROCESS "Process"
#define API_TYPE_DIRMONITOR "Dirmonitor"
#define API_TYPE_NATIVE_PLUGIN "NativePlugin"
#define API_TYPE_SHARED_MEMORY "SharedMemory"
#define API_TYPE_RENWINDOW "RenWindow"
#define API_CONSTANT_DEFINE(L, idx, key, n) (lua_pushnumber(L, n), lua_setfield(L, idx - 1, key))
void api_load_libs(lua_State *L);
#endif
|