view src/typemap @ 18404:b1a10a018f83 v8.1.2196

patch 8.1.2196: MS-Windows: running tests with MSVC lacks updates Commit: https://github.com/vim/vim/commit/d53ebfc6246b2f29752adbda13cd2c11acca285a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 20 21:47:20 2019 +0200 patch 8.1.2196: MS-Windows: running tests with MSVC lacks updates Problem: MS-Windows: running tests with MSVC lacks updates. Solution: Improve running individual tests on MS-Windows. (closes https://github.com/vim/vim/issues/4922)
author Bram Moolenaar <Bram@vim.org>
date Sun, 20 Oct 2019 22:00: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}\")