view src/typemap @ 27207:7b8e2bea0ec5 v8.2.4132

patch 8.2.4132: Vim9: wrong error message when autoload script can't be found Commit: https://github.com/vim/vim/commit/1836d6157828baddd94e1f2c82488031570e444d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 18 13:14:47 2022 +0000 patch 8.2.4132: Vim9: wrong error message when autoload script can't be found Problem: Vim9: wrong error message when autoload script can't be found. Solution: Correct check for using autoload with wrong name.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Jan 2022 14:15: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}\")