executor.h
Go to the documentation of this file.
1 #ifndef NVIM_LUA_EXECUTOR_H
2 #define NVIM_LUA_EXECUTOR_H
3 
4 #include <lua.h>
5 #include <lauxlib.h>
6 
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
13 void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL;
14 
15 EXTERN LuaRef nlua_nil_ref INIT(= LUA_NOREF);
16 EXTERN LuaRef nlua_empty_dict_ref INIT(= LUA_NOREF);
17 
18 #define set_api_error(s, err) \
19  do { \
20  Error *err_ = (err); \
21  err_->type = kErrorTypeException; \
22  err_->set = true; \
23  memcpy(&err_->msg[0], s, sizeof(s)); \
24  } while (0)
25 
26 #ifdef INCLUDE_GENERATED_DECLARATIONS
27 # include "lua/executor.h.generated.h"
28 #endif
29 #endif // NVIM_LUA_EXECUTOR_H
#define REAL_FATTR_NONNULL_ALL
Definition: func_attr.h:183
#define EXTERN
Definition: macros.h:7
EXTERN LuaRef nlua_nil_ref INIT(=LUA_NOREF)
int LuaRef
Definition: types.h:22
void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL