view src/typemap @ 11583:ef8b233f07ae v8.0.0674

patch 8.0.0674: cannot build with eval but without timers commit https://github.com/vim/vim/commit/5d7be4f0fa04a9210a14fca69b4f9e34613b378f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 25 13:40:17 2017 +0200 patch 8.0.0674: cannot build with eval but without timers Problem: Cannot build with eval but without timers. Solution: Add #ifdef (John Marriott)
author Christian Brabandt <cb@256bit.org>
date Sun, 25 Jun 2017 13:45:03 +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}\")