view src/typemap @ 16346:2fb516abde42 v8.1.1178

patch 8.1.1178: when mouse click tests fails value of 'ttytype' is unknown commit https://github.com/vim/vim/commit/4945219b99f8e191c599f80dedc0c4be02ed821e Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 17 16:27:02 2019 +0200 patch 8.1.1178: when mouse click tests fails value of 'ttytype' is unknown Problem: When mouse click tests fails value of 'ttytype' is unknown. Solution: Add a message to the assert.
author Bram Moolenaar <Bram@vim.org>
date Wed, 17 Apr 2019 16:30:08 +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}\")