view src/typemap @ 24154:6e8f49a4a193 v8.2.2618

patch 8.2.2618: Vim9: cannot use a normal list name to store function refs Commit: https://github.com/vim/vim/commit/3f32788000258aabe078b426e3d71962bee9d2d1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 17 20:56:38 2021 +0100 patch 8.2.2618: Vim9: cannot use a normal list name to store function refs Problem: Vim9: cannot use a normal list name to store function refs. Solution: Allow a lower case name if it is indexed.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Mar 2021 21:00:04 +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}\")