view src/typemap @ 25403:9203b28ab453 v8.2.3238

patch 8.2.3238: Vim9: error message does not indicate the location Commit: https://github.com/vim/vim/commit/d47c39775b8d381005751b7b20da56412dafb5e4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 28 20:52:13 2021 +0200 patch 8.2.3238: Vim9: error message does not indicate the location Problem: Vim9: error message does not indicate the location. Solution: Add the relevant text. (issue https://github.com/vim/vim/issues/8634)
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Jul 2021 21:00:04 +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}\")