view src/typemap @ 7068:a55f35ed381b v7.4.846

commit https://github.com/vim/vim/commit/6017f3799dbb744fc34894d968b36729e607203e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 1 17:50:48 2015 +0200 patch 7.4.846 Problem: Some GitHub users don't know how to use issues. Solution: Add a file that explains the basics of contributing.
author Christian Brabandt <cb@256bit.org>
date Tue, 01 Sep 2015 18:00: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}\")