view src/typemap @ 23547:7f09cfa9ac4a v8.2.2316

patch 8.2.2316: Vim9: cannot list a lambda function Commit: https://github.com/vim/vim/commit/b657198cb30765468451d7f68fce49b5b4000c5d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 8 22:24:19 2021 +0100 patch 8.2.2316: Vim9: cannot list a lambda function Problem: Vim9: cannot list a lambda function. Solution: Support the <lambda>9 notation, like :disassemble. (closes https://github.com/vim/vim/issues/7634)
author Bram Moolenaar <Bram@vim.org>
date Fri, 08 Jan 2021 22:30:06 +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}\")