view src/typemap @ 10603:df1abc85b169 v8.0.0191

patch 8.0.0191: can't build with Ruby on some systems commit https://github.com/vim/vim/commit/4f391796b7de78a434a2cc7107034603df414905 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 15 16:59:07 2017 +0100 patch 8.0.0191: can't build with Ruby on some systems Problem: Some systems do not have ruby_sysinit(), causing the build to fail. Solution: Clean up how ruby_sysinit() and NtInitialize() are used. (Taro Muraoka)
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Jan 2017 17:00:05 +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}\")