view src/typemap @ 26698:254fffd11fda v8.2.3878

patch 8.2.3878: Vim9: debugger tries to read more lines than there are Commit: https://github.com/vim/vim/commit/310091d20f26f6472fefc31e19004684f3d640bf Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 23 21:14:37 2021 +0000 patch 8.2.3878: Vim9: debugger tries to read more lines than there are Problem: Vim9: debugger tries to read more lines than there are. Solution: Check the number of lines. (closes https://github.com/vim/vim/issues/9394)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Dec 2021 22:15: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}\")