lite-xl/src/api/api.h

18 lines
381 B
C
Raw Normal View History

2019-12-28 12:16:32 +01:00
#ifndef API_H
#define API_H
2021-09-11 04:22:30 +02:00
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
2019-12-28 12:16:32 +01:00
#define API_TYPE_FONT "Font"
#define API_TYPE_PROCESS "Process"
#define API_TYPE_DIRMONITOR "Dirmonitor"
#define API_TYPE_NATIVE_PLUGIN "NativePlugin"
2019-12-28 12:16:32 +01:00
#define API_CONSTANT_DEFINE(L, idx, key, n) (lua_pushnumber(L, n), lua_setfield(L, idx - 1, key))
2019-12-28 12:16:32 +01:00
void api_load_libs(lua_State *L);
#endif