view src/typemap @ 14750:1e6666885bc0 v8.1.0387

patch 8.1.0387: no test for 'ambiwidth' detection commit https://github.com/vim/vim/commit/24839edc54e985ed88d063513226922a6f5b7554 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 13 20:46:52 2018 +0200 patch 8.1.0387: no test for 'ambiwidth' detection Problem: No test for 'ambiwidth' detection. Solution: Add a test.
author Christian Brabandt <cb@256bit.org>
date Thu, 13 Sep 2018 21:00: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}\")