view src/typemap @ 18410:b5b2e3b824c2 v8.1.2199

patch 8.1.2199: build failure when using normal features without GUI Commit: https://github.com/vim/vim/commit/a720be78d7978b3b853ff6c8af0d1721d6225378 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 22 21:45:19 2019 +0200 patch 8.1.2199: build failure when using normal features without GUI Problem: Build failure when using normal features without GUI and EXITFREE defined. Solution: Add #ifdef. (Dominique Pelle, closes #5106)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Oct 2019 22: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}\")