view src/typemap @ 14619:5e85d326d616 v8.1.0323

patch 8.1.0323: reverse order of VTP calls only needed the first time commit https://github.com/vim/vim/commit/2551c037e41b3c2702d3ec30ee518c11966b19e6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 23 22:38:31 2018 +0200 patch 8.1.0323: reverse order of VTP calls only needed the first time Problem: Reverse order of VTP calls only needed the first time. Solution: Add a flag to remember the state. (Nobuhiro Takasaki, closes https://github.com/vim/vim/issues/3366)
author Christian Brabandt <cb@256bit.org>
date Thu, 23 Aug 2018 22:45:05 +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}\")