view src/typemap @ 20907:4eeda7139133 v8.2.1005

patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing Commit: https://github.com/vim/vim/commit/9b68c82b7ca768100f3eb4223d100c62c5429e53 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 18 19:31:08 2020 +0200 patch 8.2.1005: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing Problem: Vim9: using TRUE/FALSE/MAYBE for ctx_skip is confusing. Solution: Use an enum value.
author Bram Moolenaar <Bram@vim.org>
date Thu, 18 Jun 2020 19:45:03 +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}\")