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 
7 #include "nvim/func_attr.h"
8 #include "nvim/eval/typval.h"
9 #include "nvim/ex_cmds_defs.h"
10 
11 // Generated by msgpack-gen.lua
12 void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL;
13 
14 #define set_api_error(s, err) \
15  do { \
16  Error *err_ = (err); \
17  err_->type = kErrorTypeException; \
18  err_->set = true; \
19  memcpy(&err_->msg[0], s, sizeof(s)); \
20  } while (0)
21 
22 #ifdef INCLUDE_GENERATED_DECLARATIONS
23 # include "lua/executor.h.generated.h"
24 #endif
25 #endif // NVIM_LUA_EXECUTOR_H
#define REAL_FATTR_NONNULL_ALL
Definition: func_attr.h:183
void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL