view src/typemap @ 7749:3a1b60f5e89b v7.4.1172

commit https://github.com/vim/vim/commit/16435480f0f41372585b3d305a29b5fda8271fbc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 24 21:31:54 2016 +0100 patch 7.4.1172 Problem: Configure is overly positive. Solution: Insert "test".
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Jan 2016 21:45: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}\")