view src/typemap @ 19443:6b1a59e71f85 v8.2.0279

patch 8.2.0279: Vim9: no test for deleted :def function Commit: https://github.com/vim/vim/commit/63ce4849efa54d3980446ad337d0e1248ec86182 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 19 15:46:48 2020 +0100 patch 8.2.0279: Vim9: no test for deleted :def function Problem: Vim9: no test for deleted :def function. Solution: Add a test. Clear uf_cleared flag when redefining a function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 19 Feb 2020 16:00:04 +0100
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}\")