view src/typemap @ 20877:63c92d1c10bc v8.2.0990

patch 8.2.0990: Using duplicate error number Commit: https://github.com/vim/vim/commit/a1bc6f12936a9f621238b940d5c6e97837809447 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 16 22:27:39 2020 +0200 patch 8.2.0990: Using duplicate error number Problem: Using duplicate error number. Solution: Use an unused error number. Add a test for it.
author Bram Moolenaar <Bram@vim.org>
date Tue, 16 Jun 2020 22: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}\")