From 5f5e39323ee799def35adde7cfee06698c2dfcc8 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Thu, 8 May 2014 18:25:59 -0300 Subject: API: Move vim_to_object to helpers.c --- src/api/helpers.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/api/helpers.h') diff --git a/src/api/helpers.h b/src/api/helpers.h index b1faf4edee..ddb46eaad4 100644 --- a/src/api/helpers.h +++ b/src/api/helpers.h @@ -4,6 +4,7 @@ #include #include "api/defs.h" +#include "../vim.h" #define set_api_error(message, err) \ do { \ @@ -21,5 +22,12 @@ void try_start(void); /// @return true if an error occurred bool try_end(Error *err); +/// Convert a vim object to an `Object` instance, recursively expanding +/// Arrays/Dictionaries. +/// +/// @param obj The source object +/// @return The converted value +Object vim_to_object(typval_T *obj); + #endif /* NEOVIM_API_HELPERS_H */ -- cgit