view src/typemap @ 20211:3a94b984c9f9 v8.2.0661

patch 8.2.0661: eval test is still old style Commit: https://github.com/vim/vim/commit/339d60c89bef0315343a6128a1b4826510b0efe4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Apr 29 22:01:21 2020 +0200 patch 8.2.0661: eval test is still old style Problem: Eval test is still old style. Solution: Change into new style tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/6009)
author Bram Moolenaar <Bram@vim.org>
date Wed, 29 Apr 2020 22:15:04 +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}\")