view src/typemap @ 35055:1e09e491b39f default tip

runtime(doc): fix typo Commit: https://github.com/vim/vim/commit/00ae5c5cba7b2b42662687b3150397fe1737fba0 Author: Christian Brabandt <cb@256bit.org> Date: Fri Apr 26 18:56:21 2024 +0200 runtime(doc): fix typo Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Apr 2024 19:00:04 +0200
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}\")