view src/typemap @ 23138:1a9705075244 v8.2.2115

patch 8.2.2115: Vim9: some errors not tested for; dead code Commit: https://github.com/vim/vim/commit/7257af477bc5f33153f8f700b643551525f1105b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 8 22:08:51 2020 +0100 patch 8.2.2115: Vim9: some errors not tested for; dead code Problem: Vim9: some errors not tested for; dead code. Solution: Add a test. Remove dead code.
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Dec 2020 22:15: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}\")