view src/typemap @ 27778:858002fef4b7 v8.2.4415

patch 8.2.4415: function argument name conflicts with C++ keyword Commit: https://github.com/vim/vim/commit/b8fb5bb68d45f3e52bb9ea201dc9e7dc6b6d2c6d Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 18 13:56:38 2022 +0000 patch 8.2.4415: function argument name conflicts with C++ keyword Problem: Function argument name conflicts with C++ keyword. Solution: Rename the argument.
author Bram Moolenaar <Bram@vim.org>
date Fri, 18 Feb 2022 15:00: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}\")