mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 01:08:20 +00:00
API: Move helper functions to another module
This commit is contained in:
19
src/api/helpers.h
Normal file
19
src/api/helpers.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef NEOVIM_API_HELPERS_H
|
||||
#define NEOVIM_API_HELPERS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "api/defs.h"
|
||||
|
||||
/// Start block that may cause vimscript exceptions
|
||||
void try_start(void);
|
||||
|
||||
/// End try block, set the error message if any and return true if an error
|
||||
/// occurred.
|
||||
///
|
||||
/// @param err Pointer to the stack-allocated error object
|
||||
/// @return true if an error occurred
|
||||
bool try_end(Error *err);
|
||||
|
||||
#endif /* NEOVIM_API_HELPERS_H */
|
||||
|
Reference in New Issue
Block a user