view src/typemap @ 25288:ddc38de331ff v8.2.3181

patch 8.2.3181: Vim9: builtin function test fails without channel feature Commit: https://github.com/vim/vim/commit/9ff9c7b9741b216d3dc75603e50654088dc5f55b Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sun Jul 18 21:44:37 2021 +0200 patch 8.2.3181: Vim9: builtin function test fails without channel feature Problem: Vim9: builtin function test fails without channel feature. Solution: Add feature checks. (Dominique Pell?, closes https://github.com/vim/vim/issues/8586) Make feature checks more consistent.
author Bram Moolenaar <Bram@vim.org>
date Sun, 18 Jul 2021 21:45:04 +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}\")