view src/typemap @ 28035:9f8535cf6f1b v8.2.4542

patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly Commit: https://github.com/vim/vim/commit/873f8243f6feadec72d9bf6203e550cc1b66611a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 10 21:53:44 2022 +0000 patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly Problem: Vim9: "break" inside try/catch not handled correctly. Solution: First jump to :endtry. (closes https://github.com/vim/vim/issues/9927)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Mar 2022 23: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}\")