view src/typemap @ 19637:8de319d1b82c v8.2.0375

patch 8.2.0375: Coverity warning for not using return value Commit: https://github.com/vim/vim/commit/8210693795d6d0d51bf5b70674d4539cdde0330b Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 13 14:34:38 2020 +0100 patch 8.2.0375: Coverity warning for not using return value Problem: Coverity warning for not using return value. Solution: Move error message to separate function.
author Bram Moolenaar <Bram@vim.org>
date Fri, 13 Mar 2020 14:45: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}\")