view src/typemap @ 24204:ec71c859e94c v8.2.2643

patch 8.2.2643: various code not covered by tests Commit: https://github.com/vim/vim/commit/1f448d906b3c516e5864dc5bae3ddbf3664ee649 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 22 19:37:06 2021 +0100 patch 8.2.2643: various code not covered by tests Problem: Various code not covered by tests. Solution: Add a few more test. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/7995)
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Mar 2021 19:45:04 +0100
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}\")