1#ifndef NVIM_LUA_EXECUTOR_H
2#define NVIM_LUA_EXECUTOR_H
3
4#include <lua.h>
5#include <lauxlib.h>
6
7#include "nvim/api/private/defs.h"
8#include "nvim/func_attr.h"
9#include "nvim/eval/typval.h"
10#include "nvim/ex_cmds_defs.h"
11
12// Generated by msgpack-gen.lua
13void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL;
14
15#define set_api_error(s, err) \
16 do { \
17 Error *err_ = (err); \
18 err_->type = kErrorTypeException; \
19 err_->set = true; \
20 memcpy(&err_->msg[0], s, sizeof(s)); \
21 } while (0)
22
23#ifdef INCLUDE_GENERATED_DECLARATIONS
24# include "lua/executor.h.generated.h"
25#endif
26#endif // NVIM_LUA_EXECUTOR_H
27