view src/typemap @ 13212:a80490493c6b v8.0.1480

patch 8.0.1480: patch missing change commit https://github.com/vim/vim/commit/0562532c2eee6205d225aa1dc7e3e89af0dfd990 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 9 12:28:00 2018 +0100 patch 8.0.1480: patch missing change Problem: Patch missing change. Solution: Add missing change.
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Feb 2018 12:30:06 +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}\")