mirror of
https://github.com/neovim/neovim.git
synced 2026-02-20 09:19:43 +10:00
No tests yet, no documentation update, no :lua* stuff, no vim module.
converter.c should also work with typval_T, not Object.
Known problem: luaeval("1", {}) results in
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
Ref #3823
24 lines
600 B
C
24 lines
600 B
C
#ifndef NVIM_VIML_EXECUTOR_EXECUTOR_H
|
|
#define NVIM_VIML_EXECUTOR_EXECUTOR_H
|
|
|
|
#include <lua.h>
|
|
|
|
#include "nvim/api/private/defs.h"
|
|
#include "nvim/func_attr.h"
|
|
|
|
// Generated by msgpack-gen.lua
|
|
void nlua_add_api_functions(lua_State *lstate) REAL_FATTR_NONNULL_ALL;
|
|
|
|
#define set_api_error(s, err) \
|
|
do { \
|
|
Error *err_ = (err); \
|
|
err_->type = kErrorTypeException; \
|
|
err_->set = true; \
|
|
memcpy(&err_->msg[0], s, sizeof(s)); \
|
|
} while (0)
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "viml/executor/executor.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_VIML_EXECUTOR_EXECUTOR_H
|