view src/typemap @ 9361:f089eb0a5fa4 v7.4.1962

commit https://github.com/vim/vim/commit/52df117df724a7ad20affdf15214d2df2e507dcc Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 26 19:38:19 2016 +0200 patch 7.4.1962 Problem: Two test files for increment/decrement. Solution: Move the old style test into the new style test. (Hirohito Higashi, closes https://github.com/vim/vim/issues/881)
author Christian Brabandt <cb@256bit.org>
date Sun, 26 Jun 2016 19:45:06 +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}\")