view src/typemap @ 23195:75f35ae990ac v8.2.2143

patch 8.2.2143: Vim9: dead code in compiling :unlet Commit: https://github.com/vim/vim/commit/ec792290eb902e01c9edfc0cb71e5235833df56a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 13 21:26:56 2020 +0100 patch 8.2.2143: Vim9: dead code in compiling :unlet Problem: Vim9: dead code in compiling :unlet. Solution: Don't check for "!" a second time.
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Dec 2020 21:30:05 +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}\")