view src/typemap @ 27225:95f202f77cbb v8.2.4141

patch 8.2.4141: Vim9 builtin functions test fails Commit: https://github.com/vim/vim/commit/17dd51963367495f75b0f0a73139081dd7b25500 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 21:42:37 2022 +0000 patch 8.2.4141: Vim9 builtin functions test fails Problem: Vim9 builtin functions test fails. Solution: Add "scriptversion" item to maparg() result.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 22:45:03 +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}\")