view src/typemap @ 24410:25db91a3281b v8.2.2745

patch 8.2.2745: Vim9: missing part of the argument change Commit: https://github.com/vim/vim/commit/51e7e78de7320a734ddc2d7931e767bccaf7e6f2 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 10 17:46:52 2021 +0200 patch 8.2.2745: Vim9: missing part of the argument change Problem: Vim9: missing part of the argument change. Solution: Add missing changes.
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Apr 2021 18:00:03 +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}\")