view src/typemap @ 7179:f7d6cc6b78b5 v7.4.900

commit https://github.com/vim/vim/commit/f1a4c98ea6fa122ceb24c1ad17e184703cbfd182 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 25 22:42:00 2015 +0100 patch 7.4.900 Problem: README file can still be improved Solution: Add a couple of links. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sun, 25 Oct 2015 22:45:03 +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}\")