view src/typemap @ 23039:75241f4377a4 v8.2.2066

patch 8.2.2066: Vim9: assignment with += doesn't work Commit: https://github.com/vim/vim/commit/ce2c5444e2556d8d156ab447d6d196f9ecd11ddc Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 28 21:21:17 2020 +0100 patch 8.2.2066: Vim9: assignment with += doesn't work Problem: Vim9: assignment with += doesn't work. Solution: Do not see the "+" as an addition operator.
author Bram Moolenaar <Bram@vim.org>
date Sat, 28 Nov 2020 21:30:04 +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}\")