view src/typemap @ 28631:198a2caa8ac2 v8.2.4839

patch 8.2.4839: compiler warning for unused argument Commit: https://github.com/vim/vim/commit/0a748d91846a4c3422975acc0af78c806623c191 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 28 15:39:08 2022 +0100 patch 8.2.4839: compiler warning for unused argument Problem: Compiler warning for unused argument. Solution: Add "UNUSED".
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Apr 2022 16:45:02 +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}\")