view src/typemap @ 25230:658dfd6be868 v8.2.3151

patch 8.2.3151: Vim9: profiling fails if nested function is also profiled Commit: https://github.com/vim/vim/commit/ffcfddc759e583471a1ed55e0938d042bf68c507 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 11 20:22:30 2021 +0200 patch 8.2.3151: Vim9: profiling fails if nested function is also profiled Problem: Vim9: profiling fails if nested function is also profiled. Solution: Use the compile type from the outer function. (closes https://github.com/vim/vim/issues/8543)
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Jul 2021 20:30: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}\")