mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.1786: Vim9: need instanceof() function
Problem: Vim9: need instanceof() function Solution: Implement instanceof() builtin Implemented in the same form as Python's isinstance because it allows for checking multiple class types at the same time. closes: #12867 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: LemonBoy <thatlemon@gmail.com>
This commit is contained in:
committed by
Christian Brabandt
parent
1193951beb
commit
afe0466fb1
12
src/errors.h
12
src/errors.h
@@ -1570,9 +1570,12 @@ EXTERN char e_too_many_signs_defined[]
|
||||
EXTERN char e_unknown_printer_font_str[]
|
||||
INIT(= N_("E613: Unknown printer font: %s"));
|
||||
#endif
|
||||
// E614 unused
|
||||
// E615 unused
|
||||
// E616 unused
|
||||
EXTERN char e_class_required[]
|
||||
INIT(= N_("E614: Class required"));
|
||||
EXTERN char e_object_required[]
|
||||
INIT(= N_("E615: Object required"));
|
||||
EXTERN char e_object_required_for_argument_nr[]
|
||||
INIT(= N_("E616: Object required for argument %d"));
|
||||
#ifdef FEAT_GUI_GTK
|
||||
EXTERN char e_cannot_be_changed_in_gtk_GUI[]
|
||||
INIT(= N_("E617: Cannot be changed in the GTK GUI"));
|
||||
@@ -1777,7 +1780,8 @@ EXTERN char e_can_only_compare_list_with_list[]
|
||||
INIT(= N_("E691: Can only compare List with List"));
|
||||
EXTERN char e_invalid_operation_for_list[]
|
||||
INIT(= N_("E692: Invalid operation for List"));
|
||||
// E693 unused
|
||||
EXTERN char e_list_or_class_required_for_argument_nr[]
|
||||
INIT(= N_("E693: List or Class required for argument %d"));
|
||||
EXTERN char e_invalid_operation_for_funcrefs[]
|
||||
INIT(= N_("E694: Invalid operation for Funcrefs"));
|
||||
EXTERN char e_cannot_index_a_funcref[]
|
||||
|
Reference in New Issue
Block a user