view src/typemap @ 31561:e24772b8fbc9 v9.0.1113

patch 9.0.1113: users cannot easily try out a PR Commit: https://github.com/vim/vim/commit/0a657124a57baa10c65554f04c7806e939927830 Author: Christian Brabandt <cb@256bit.org> Date: Fri Dec 30 17:28:12 2022 +0000 patch 9.0.1113: users cannot easily try out a PR Problem: Users cannot easily try out a PR. Solution: Add an "artifacts" section to the AppVeyor CI config. (Christian Brabandt, closes #11762)
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Dec 2022 18:30: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}\")