aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/converter.h
blob: 1c9e60e4b27a8119a0bb606d7b4aac0f01eac716 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef NVIM_LUA_CONVERTER_H
#define NVIM_LUA_CONVERTER_H

#include <lua.h>
#include <stdbool.h>
#include <stdint.h>

#include "nvim/api/private/defs.h"
#include "nvim/eval.h"
#include "nvim/func_attr.h"

typedef struct {
  LuaRef func_ref;
} LuaCallable;

typedef struct {
  LuaCallable lua_callable;
} LuaCFunctionState;

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "lua/converter.h.generated.h"
#endif
#endif  // NVIM_LUA_CONVERTER_H