view src/typemap @ 20301:e1a8d2040bd7 v8.2.0706

patch 8.2.0706: Vim9: using assert_fails() causes function to finish Commit: https://github.com/vim/vim/commit/8a1c1013153a7f08e014facac883a1987985d6db Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 7 14:07:25 2020 +0200 patch 8.2.0706: Vim9: using assert_fails() causes function to finish Problem: Vim9: using assert_fails() causes function to finish. Solution: Check did_emsg instead of called_emsg.
author Bram Moolenaar <Bram@vim.org>
date Thu, 07 May 2020 14:15:04 +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}\")