diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-07-25 15:57:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-25 15:57:32 +0200 |
commit | a764e73d4ffc5d046807c757eaacb9b0a5408152 (patch) | |
tree | 477a5065575e437a5496ead0e45ac8ff5ee5671c /src/proto | |
parent | 2ec28aec9d4f1b9c1c008e36adde9fc82affae0f (diff) | |
download | vim-git-a764e73d4ffc5d046807c757eaacb9b0a5408152.tar.gz |
patch 8.2.3221: Vim9: argument types are not checked at compile timev8.2.3221
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/typval.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proto/typval.pro b/src/proto/typval.pro index 8f6e3e16f..b6248afc8 100644 --- a/src/proto/typval.pro +++ b/src/proto/typval.pro @@ -14,6 +14,7 @@ int check_for_nonempty_string_arg(typval_T *args, int idx); int check_for_opt_string_arg(typval_T *args, int idx); int check_for_number_arg(typval_T *args, int idx); int check_for_opt_number_arg(typval_T *args, int idx); +int check_for_float_or_nr_arg(typval_T *args, int idx); int check_for_bool_arg(typval_T *args, int idx); int check_for_opt_bool_arg(typval_T *args, int idx); int check_for_list_arg(typval_T *args, int idx); @@ -31,6 +32,7 @@ int check_for_opt_lnum_arg(typval_T *args, int idx); int check_for_opt_string_or_number_arg(typval_T *args, int idx); int check_for_string_or_blob_arg(typval_T *args, int idx); int check_for_string_or_list_arg(typval_T *args, int idx); +int check_for_opt_string_or_list_arg(typval_T *args, int idx); int check_for_list_or_blob_arg(typval_T *args, int idx); int check_for_list_or_dict_or_blob_arg(typval_T *args, int idx); int check_for_buffer_or_dict_arg(typval_T *args, int idx); |