view src/typemap @ 7484:1fe988587423 v7.4.1044

commit https://github.com/vim/vim/commit/718272a7e13c71095ce07eb3b3d5e1f9790a6991 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 3 22:56:45 2016 +0100 patch 7.4.1044 Problem: Can't build without the +eval feature. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Sun, 03 Jan 2016 23: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}\")