view src/typemap @ 19898:648752e0d579 v8.2.0505

patch 8.2.0505: term_getty() not sufficiently tested Commit: https://github.com/vim/vim/commit/01603a9970421272621f7c1ecdc560b522c92e61 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Apr 3 12:56:17 2020 +0200 patch 8.2.0505: term_getty() not sufficiently tested Problem: term_getty() not sufficiently tested. Solution: Add more asserts. (Dominique Pelle, closes https://github.com/vim/vim/issues/5877)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Apr 2020 13:00: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}\")