view src/typemap @ 15158:a9340baa872f v8.1.0589

patch 8.1.0589: compilation error in gvimext.cpp commit https://github.com/vim/vim/commit/142a9758151e470307a80ea37b06ea34558ff5b3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 14 19:54:39 2018 +0100 patch 8.1.0589: compilation error in gvimext.cpp Problem: Compilation error in gvimext.cpp. Solution: Return a value. Also fix using uninitialized variable.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Dec 2018 20:00:04 +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}\")