view src/typemap @ 15164:9d05de1ecc6f v8.1.0592

patch 8.1.0592: the libvterm tests are not run as part of Vim tests commit https://github.com/vim/vim/commit/471f65813592238509923f2c8748df5be03513e9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 15 14:24:39 2018 +0100 patch 8.1.0592: the libvterm tests are not run as part of Vim tests Problem: The libvterm tests are not run as part of Vim tests. Solution: Add testing libvterm.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Dec 2018 14:30:08 +0100
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}\")