view src/typemap @ 28899:2644e49d5147 v8.2.4972

patch 8.2.4972: Vim9: compilation fails when using dict member when skipping Commit: https://github.com/vim/vim/commit/1ff9c44267ce487145d22d75a96370d7f96ae8dd Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 17 15:03:33 2022 +0100 patch 8.2.4972: Vim9: compilation fails when using dict member when skipping Problem: Vim9: compilation fails when using dict member when skipping. Solution: Do not generate ISN_USEDICT when skipping. (closes https://github.com/vim/vim/issues/10433)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 May 2022 16:15:02 +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}\")