view src/typemap @ 8126:0aa9cb77a8dd v7.4.1357

commit https://github.com/vim/vim/commit/132006c3d0f87dbda5f4d5410fcce312e4716f72 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 19 22:38:15 2016 +0100 patch 7.4.1357 Problem: Error for returning value from void function. Solution: Don't do that.
author Christian Brabandt <cb@256bit.org>
date Fri, 19 Feb 2016 22:45: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}\")