view src/typemap @ 22111:ef9ad6556cbc v8.2.1605

patch 8.2.1605: default maintainer on github is wrong Commit: https://github.com/vim/vim/commit/b02628b8a20ad0c42a097207b3b49ae5169d04d7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 5 18:40:44 2020 +0200 patch 8.2.1605: default maintainer on github is wrong Problem: Defyyyyyyyyyyyyyyyyyyyyyyyub is wrong. Solution: Use Bram's account.
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Sep 2020 18:45: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}\")