view src/typemap @ 15989:a14d8b4ef2b0 v8.1.1000

patch 8.1.1000: indenting is off commit https://github.com/vim/vim/commit/fd731b0e31df9f167098c4a77ff894fea6cb7f5c Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 9 11:23:58 2019 +0100 patch 8.1.1000: indenting is off Problem: Indenting is off. Solution: Make indenting consistent and update comments. (Ozaki Kiichi, closes #4079)
author Bram Moolenaar <Bram@vim.org>
date Sat, 09 Mar 2019 11:30:06 +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}\")