mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
eval: Change the point at which arg_errmsg and its length are changed
Ref #6437
This commit is contained in:
@@ -423,6 +423,17 @@ static inline bool tv_is_func(const typval_T tv)
|
||||
return tv.v_type == VAR_FUNC || tv.v_type == VAR_PARTIAL;
|
||||
}
|
||||
|
||||
/// Specify that argument needs to be translated
|
||||
///
|
||||
/// Used for size_t length arguments to avoid calling gettext() and strlen()
|
||||
/// unless needed.
|
||||
#define TV_TRANSLATE (SIZE_MAX)
|
||||
|
||||
/// Specify that argument is a NUL-terminated C string
|
||||
///
|
||||
/// Used for size_t length arguments to avoid calling strlen() unless needed.
|
||||
#define TV_CSTRING (SIZE_MAX - 1)
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "eval/typval.h.generated.h"
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user