view src/typemap @ 7588:0738fa9c4971 v7.4.1094

commit https://github.com/vim/vim/commit/ccb80989f2779c8441f7f15d160fb2141bd1676d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 15 15:56:35 2016 +0100 patch 7.4.1094 Problem: Test for :hardcopy fails on MS-Windows. Solution: Check for the +postscript feature.
author Christian Brabandt <cb@256bit.org>
date Fri, 15 Jan 2016 16: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}\")