view src/typemap @ 21170:8c494353c6bc v8.2.1136

patch 8.2.1136: Vim9: return type of argv() is always any Commit: https://github.com/vim/vim/commit/846178a72ca0860073d47fc0dc95f98d15f1d921 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 5 17:04:13 2020 +0200 patch 8.2.1136: Vim9: return type of argv() is always any Problem: Vim9: return type of argv() is always any. Solution: Use list<string> if there is no argument.
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jul 2020 17:15: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}\")