view src/typemap @ 25328:0aac8880d74d v8.2.3201

patch 8.2.3201: crash in test Commit: https://github.com/vim/vim/commit/2b59df00d80ea8d2c0fcf4f4ae9a018c1790206f Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 22 15:14:25 2021 +0200 patch 8.2.3201: crash in test Problem: Crash in test. Solution: Initialize "where".
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Jul 2021 15: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}\")