view src/typemap @ 29098:cff23287478f v8.2.5070

patch 8.2.5070: unnecessary code Commit: https://github.com/vim/vim/commit/b5f0801b1f043b5cf99380f58eca51b75b3236c7 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Jun 9 13:55:28 2022 +0100 patch 8.2.5070: unnecessary code Problem: Unnecessary code. Solution: Remove code that isn't needed. (closes https://github.com/vim/vim/issues/10534)
author Bram Moolenaar <Bram@vim.org>
date Thu, 09 Jun 2022 15:00:07 +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}\")