view src/typemap @ 25947:5792bbdca568 v8.2.3507

patch 8.2.3507: generating proto files may fail Commit: https://github.com/vim/vim/commit/75aa92a16264e3511ba41aa306ffc1ffbbd2fe3a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 14 16:27:19 2021 +0100 patch 8.2.3507: generating proto files may fail Problem: Generating proto files may fail. Solution: Define __attribute().
author Bram Moolenaar <Bram@vim.org>
date Thu, 14 Oct 2021 17:30:04 +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}\")