view src/typemap @ 12525:626fb8e8bb8a v8.0.1141

patch 8.0.1141: MS-Windows build dependencies are incomplete commit https://github.com/vim/vim/commit/96e7a6ee4569526c71b1e89f641526775831ac63 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 23 19:48:29 2017 +0200 patch 8.0.1141: MS-Windows build dependencies are incomplete Problem: MS-Windows build dependencies are incomplete. Solution: Fix the dependencies. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sat, 23 Sep 2017 20:00: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}\")