view src/typemap @ 29359:dd76820a4d60 v9.0.0022

patch 9.0.0022: spell test fails Commit: https://github.com/vim/vim/commit/95afae6d1760b2efcc4968dbd3784799d24e9fdf Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 1 22:44:19 2022 +0100 patch 9.0.0022: spell test fails Problem: Spell test fails. Solution: Expect new error is given.
author Bram Moolenaar <Bram@vim.org>
date Fri, 01 Jul 2022 23:45:02 +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}\")