mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
API: Move vim_to_object to helpers.c
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <stdbool.h>
|
||||
|
||||
#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 */
|
||||
|
||||
|
Reference in New Issue
Block a user