view src/typemap @ 25893:51694ef3902e v8.2.3480

patch 8.2.3480: test does not fail without the fix for a crash Commit: https://github.com/vim/vim/commit/949de97da32d4fff28c569387e2ba8b3e311e64d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Tue Oct 5 19:28:01 2021 +0100 patch 8.2.3480: test does not fail without the fix for a crash Problem: Test does not fail without the fix for a crash. Solution: Write the bad code in a file and source it. (Dominique Pell?, closes #8961)
author Bram Moolenaar <Bram@vim.org>
date Tue, 05 Oct 2021 20:30:05 +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}\")