view src/typemap @ 28556:ea98e79c9677 v8.2.4802

patch 8.2.4802: test is not cleaned up Commit: https://github.com/vim/vim/commit/7851c69a120ea6ce8c122dd7198adbe5aec83ea5 Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Apr 21 11:14:01 2022 +0100 patch 8.2.4802: test is not cleaned up Problem: Test is not cleaned up. Solution: Make test clean up after itself. Avoid NUL. (closes https://github.com/vim/vim/issues/10233)
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Apr 2022 12: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}\")