view src/typemap @ 12594:573f8bdeb95a v8.0.1175

patch 8.0.1175: build failure without +termresponse commit https://github.com/vim/vim/commit/c902609f69b5662484f78dbf509715940d4134e4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 4 19:35:02 2017 +0200 patch 8.0.1175: build failure without +termresponse Problem: Build failure without +termresponse. Solution: Add #ifdef.
author Christian Brabandt <cb@256bit.org>
date Wed, 04 Oct 2017 19:45:05 +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}\")