view src/typemap @ 10833:d66e5446cc48 v8.0.0306

patch 8.0.0306: mode() not sufficiently tested commit https://github.com/vim/vim/commit/e971df39a5aac5d9b7e8033247dc18b12daa0eb8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 5 14:15:29 2017 +0100 patch 8.0.0306: mode() not sufficiently tested Problem: mode() not sufficiently tested. Solution: Add more tests. (Yegappan Lakshmanan)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Feb 2017 14:30:04 +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}\")