Mercurial > vim
view src/typemap @ 20419:d54dfb5f12db v8.2.0764
patch 8.2.0764: Vim9: assigning to option not fully tested
Commit: https://github.com/vim/vim/commit/a6e67e4f41386c3e6eab7e047671c6d32f6cb0dc
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 15 23:36:40 2020 +0200
patch 8.2.0764: Vim9: assigning to option not fully tested
Problem: Vim9: assigning to option not fully tested.
Solution: Add more test cases. Allow using any type for assignment.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 15 May 2020 23:45:04 +0200 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")