view src/typemap @ 18580:4ac042c8ed98 v8.1.2284

patch 8.1.2284: compiler warning for unused variable Commit: https://github.com/vim/vim/commit/439b3aca373a1fc661f20154eba340045bbe8454 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 10 01:32:12 2019 +0100 patch 8.1.2284: compiler warning for unused variable Problem: Compiler warning for unused variable. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 Nov 2019 01:45:03 +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}\")