Mercurial > vim
view src/typemap @ 15945:f0f8754e3bf5 v8.1.0978
patch 8.1.0978: blob not tested with Perl
commit https://github.com/vim/vim/commit/2472ae81dff8c30f5d63db8ad2c937deae8be646
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 23 15:04:17 2019 +0100
patch 8.1.0978: blob not tested with Perl
Problem: Blob not tested with Perl.
Solution: Add more test coverage. Fixes a crash. (Dominique Pelle,
closes #4037)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Feb 2019 15:15:12 +0100 |
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}\")