view src/typemap @ 31398:a5561303189e v9.0.1032

patch 9.0.1032: test fails when terminal feature is missing Commit: https://github.com/vim/vim/commit/b9603f6498e5637e111bd1dca0eab88c8dd0f99b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 8 15:44:22 2022 +0000 patch 9.0.1032: test fails when terminal feature is missing Problem: Test fails when terminal feature is missing. Solution: Use CheckRunVimInTerminal.
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Dec 2022 16:45: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}\")