view src/typemap @ 27547:0410a4c24050 v8.2.4300

patch 8.2.4300: cannot build tiny version Commit: https://github.com/vim/vim/commit/4fa1346bf4210747f34b64d05b39309918ca538d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 5 12:39:24 2022 +0000 patch 8.2.4300: cannot build tiny version Problem: Cannot build tiny version. (Tony Mechelynck) Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Feb 2022 13:45: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}\")