comparison src/proto/typval.pro @ 32972:e4851934751a

patch 9.0.1786: Vim9: need instanceof() function Commit: https://github.com/vim/vim/commit/afe0466fb1695fa8b9782eea8a8e9f9540d4cb85 Author: LemonBoy <thatlemon@gmail.com> Date: Wed Aug 23 21:08:11 2023 +0200 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>
author Christian Brabandt <cb@256bit.org>
date Wed, 23 Aug 2023 21:15:08 +0200
parents ec0d5bd9083c
children 288da62613ba
comparison
equal deleted inserted replaced
32971:ccfca4f03a2b 32972:e4851934751a
49 int check_for_list_or_blob_arg(typval_T *args, int idx); 49 int check_for_list_or_blob_arg(typval_T *args, int idx);
50 int check_for_list_or_dict_arg(typval_T *args, int idx); 50 int check_for_list_or_dict_arg(typval_T *args, int idx);
51 int check_for_list_or_dict_or_blob_arg(typval_T *args, int idx); 51 int check_for_list_or_dict_or_blob_arg(typval_T *args, int idx);
52 int check_for_list_or_dict_or_blob_or_string_arg(typval_T *args, int idx); 52 int check_for_list_or_dict_or_blob_or_string_arg(typval_T *args, int idx);
53 int check_for_opt_buffer_or_dict_arg(typval_T *args, int idx); 53 int check_for_opt_buffer_or_dict_arg(typval_T *args, int idx);
54 int check_for_object_arg(typval_T *args, int idx);
55 int check_for_class_or_list_arg(typval_T *args, int idx);
54 char_u *tv_get_string(typval_T *varp); 56 char_u *tv_get_string(typval_T *varp);
55 char_u *tv_get_string_strict(typval_T *varp); 57 char_u *tv_get_string_strict(typval_T *varp);
56 char_u *tv_get_string_buf(typval_T *varp, char_u *buf); 58 char_u *tv_get_string_buf(typval_T *varp, char_u *buf);
57 char_u *tv_get_string_chk(typval_T *varp); 59 char_u *tv_get_string_chk(typval_T *varp);
58 char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf); 60 char_u *tv_get_string_buf_chk(typval_T *varp, char_u *buf);