view src/typemap @ 22754:837756417c5e v8.2.1925

patch 8.2.1925: list/dict test fails Commit: https://github.com/vim/vim/commit/6d967125ad87b1c2a9467357286c3514d5dd1c40 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Oct 30 19:06:18 2020 +0100 patch 8.2.1925: list/dict test fails Problem: List/dict test fails. Solution: Correct expected exception.
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Oct 2020 19:15: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}\")