view src/typemap @ 18108:76126690dd92 v8.1.2049

patch 8.1.2049: cannot build tiny version Commit: https://github.com/vim/vim/commit/397c6a1438186adef54fe5113690307e644b0f42 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 17 20:54:31 2019 +0200 patch 8.1.2049: cannot build tiny version Problem: Cannot build tiny version. Solution: Add #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Sep 2019 21: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}\")