diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-21 14:25:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-21 14:25:07 +0200 |
commit | 94738d8fab09c5563e1512f1695e047c715ad274 (patch) | |
tree | d3d53894638221c11e7e721d7f9396e131b0a4e1 /src/proto/evalfunc.pro | |
parent | 3da855c8e28140d9f02b1572e445f8d4f977cf64 (diff) | |
download | vim-git-94738d8fab09c5563e1512f1695e047c715ad274.tar.gz |
patch 8.2.1876: Vim9: argument types are not checked at compile timev8.2.1876
Problem: Vim9: argument types for builtin functions are not checked at
compile time.
Solution: Add an argument type checking mechanism. Implement type checks for
one function.
Diffstat (limited to 'src/proto/evalfunc.pro')
-rw-r--r-- | src/proto/evalfunc.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/evalfunc.pro b/src/proto/evalfunc.pro index f68527f9a..6cc81db0c 100644 --- a/src/proto/evalfunc.pro +++ b/src/proto/evalfunc.pro @@ -4,6 +4,7 @@ char_u *get_expr_name(expand_T *xp, int idx); int find_internal_func(char_u *name); int has_internal_func(char_u *name); char *internal_func_name(int idx); +int internal_func_check_arg_types(type_T *types, int idx, int argcount); type_T *internal_func_ret_type(int idx, int argcount, type_T **argtypes); int check_internal_func(int idx, int argcount); int call_internal_func(char_u *name, int argcount, typval_T *argvars, typval_T *rettv); |