view src/typemap @ 30994:dfc507ccfaa5 v9.0.0832

patch 9.0.0832: deprecation warning causes build failure Commit: https://github.com/vim/vim/commit/5a5f17f9b3fa14c36a7d6c96ac55acaddb6247e1 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Sat Nov 5 14:05:31 2022 +0000 patch 9.0.0832: deprecation warning causes build failure Problem: Deprecation warning causes build failure. Solution: Suppress deprecation warning. (closes https://github.com/vim/vim/issues/11503)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Nov 2022 15:15:05 +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}\")