view src/typemap @ 29132:8957a70ce228 v8.2.5086

patch 8.2.5086: CI runs on Windows 2019 Commit: https://github.com/vim/vim/commit/361f9d2da4eee27797deaa3283c5054106324b09 Author: Philip H <47042125+pheiduck@users.noreply.github.com> Date: Tue Jun 14 11:35:21 2022 +0100 patch 8.2.5086: CI runs on Windows 2019 Problem: CI runs on Windows 2019. Solution: Switch to Windows 2022.
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Jun 2022 12:45:03 +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}\")