view src/typemap @ 10922:2cc7e86bdada v8.0.0350

patch 8.0.0350: not enough test coverage for Perl commit https://github.com/vim/vim/commit/ae177b716626c8d517b7c6c7d77f8b1aec6ba5f9 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Feb 23 13:45:57 2017 +0100 patch 8.0.0350: not enough test coverage for Perl Problem: Not enough test coverage for Perl. Solution: Add more Perl tests. (Dominique Perl, closes https://github.com/vim/vim/issues/1500)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Feb 2017 14:00:05 +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}\")