view src/typemap @ 26879:da89514c3b72 v8.2.3968

patch 8.2.3968: build failure Commit: https://github.com/vim/vim/commit/e70cec976026ce72d09b6589ebba4677581063ac Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:25:55 2022 +0000 patch 8.2.3968: build failure Problem: Build failure. Solution: Add missing changes.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 15:30: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}\")