view src/typemap @ 10198:9f48eab77d62 v8.0.0000

commit https://github.com/vim/vim/commit/bb76f24af2010943387ce696a7092175b4ecccf2 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 12 14:24:39 2016 +0200 Vim 8.0 release
author Christian Brabandt <cb@256bit.org>
date Mon, 12 Sep 2016 14:30:13 +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}\")