view src/typemap @ 26048:e8592947d90b v8.2.3558

patch 8.2.3558: Vim9: asserting the wrong variable Commit: https://github.com/vim/vim/commit/06ca48a40f049f20347c9630a180457d1f1aece5 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 23 10:25:21 2021 +0100 patch 8.2.3558: Vim9: asserting the wrong variable Problem: Vim9: asserting the wrong variable. Solution: Don't use Foo, use Goo.
author Bram Moolenaar <Bram@vim.org>
date Sat, 23 Oct 2021 11:30:04 +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}\")