view src/typemap @ 29058:eee580a4c402 v8.2.5051

patch 8.2.5051: check for autocmd_add() event argument is confusing Commit: https://github.com/vim/vim/commit/882476ad7b4944a8386993e94b7e31139a314f91 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 1 16:02:38 2022 +0100 patch 8.2.5051: check for autocmd_add() event argument is confusing Problem: Check for autocmd_add() event argument is confusing. Solution: Make the code more straightforward.
author Bram Moolenaar <Bram@vim.org>
date Wed, 01 Jun 2022 17:15:03 +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}\")