view src/typemap @ 26579:2ed5dc81bd8b v8.2.3819

patch 8.2.3819: test fails because error message changed Commit: https://github.com/vim/vim/commit/427f065a885629db430dd06ccda8b1318b8a5e92 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 15 19:46:59 2021 +0000 patch 8.2.3819: test fails because error message changed Problem: Test fails because error message changed. Solution: Update screendumps.
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Dec 2021 21:00:06 +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}\")