aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/converter.h
blob: 8601a3241812712ff435efb8bf9a94d8af8fe33f (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
24
#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/func_attr.h"
#include "nvim/eval.h"

typedef struct {
  LuaRef func_ref;
  LuaRef table_ref;
} LuaCallable;

typedef struct {
  LuaCallable lua_callable;
} LuaCFunctionState;

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