view src/typemap @ 32059:24c51ccb40c0 v9.0.1361

patch 9.0.1361: extendnew() not sufficiently tested Commit: https://github.com/vim/vim/commit/341f3876b34f47fdb1c82b0ad9bae448be73a220 Author: zeertzjq <zeertzjq@outlook.com> Date: Mon Feb 27 14:59:57 2023 +0000 patch 9.0.1361: extendnew() not sufficiently tested Problem: extendnew() not sufficiently tested. Solution: Add a few more test cases for extendnew(). (closes https://github.com/vim/vim/issues/12075)
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Feb 2023 16:15:03 +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}\")