view src/typemap @ 30586:4a1b0a12b430 v9.0.0628

patch 9.0.0628: Coverity warns for not checking return value Commit: https://github.com/vim/vim/commit/d0121c63cfb0922a7048ece3efe994df6f444bed Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 30 12:00:06 2022 +0100 patch 9.0.0628: Coverity warns for not checking return value Problem: Coverity warns for not checking return value. Solution: Check the return value and simplify the code.
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Sep 2022 13:15:03 +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}\")