view src/typemap @ 31501:560ba934725f v9.0.1083

patch 9.0.1083: empty and comment lines in a class cause an error Commit: https://github.com/vim/vim/commit/418b54788106efd94bbc71a4b100afae1080cbfc Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 20 13:38:22 2022 +0000 patch 9.0.1083: empty and comment lines in a class cause an error Problem: Empty and comment lines in a class cause an error. Solution: Skip empty and comment lines. (closes https://github.com/vim/vim/issues/11734)
author Bram Moolenaar <Bram@vim.org>
date Tue, 20 Dec 2022 14:45:05 +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}\")