Macros | Functions
executor.h File Reference
#include <lauxlib.h>
#include <lua.h>
#include "nvim/api/private/defs.h"
#include "nvim/eval/typval.h"
#include "nvim/ex_cmds_defs.h"
#include "nvim/func_attr.h"
#include "nvim/lua/converter.h"

Go to the source code of this file.

Macros

#define set_api_error(s, err)
 
#define NLUA_CLEAR_REF(x)
 

Functions

void nlua_add_api_functions (lua_State *lstate) REAL_FATTR_NONNULL_ALL
 
EXTERN LuaRef nlua_nil_ref INIT (=LUA_NOREF)
 

Macro Definition Documentation

◆ NLUA_CLEAR_REF

#define NLUA_CLEAR_REF (   x)
Value:
do { \
/* Take the address to avoid double evaluation. #1375 */ \
if ((x) != LUA_NOREF) { \
api_free_luaref(x); \
(x) = LUA_NOREF; \
} \
} while (0)

◆ set_api_error

#define set_api_error (   s,
  err 
)
Value:
do { \
Error *err_ = (err); \
err_->type = kErrorTypeException; \
err_->set = true; \
memcpy(&err_->msg[0], s, sizeof(s)); \
} while (0)

Function Documentation

◆ INIT()

EXTERN LuaRef nlua_nil_ref INIT ( )

◆ nlua_add_api_functions()

void nlua_add_api_functions ( lua_State *  lstate)
kErrorTypeException
@ kErrorTypeException
Definition: defs.h:28
s
char_u * s
Definition: eval.c:764