view src/typemap @ 13396:5252ca53093a v8.0.1572

patch 8.0.1572: Mac: getting memory size doesn't work everywhere commit https://github.com/vim/vim/commit/362dc33835e3ec5d41b7f29d8877da0a9e74c15c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 5 21:59:37 2018 +0100 patch 8.0.1572: Mac: getting memory size doesn't work everywhere Problem: Mac: getting memory size doesn't work everywhere. Solution: Use MACOS_X instead of MACOS_X_DARWIN. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Mon, 05 Mar 2018 22: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}\")