Mercurial > vim
view src/typemap @ 20532:cb4831fa7e25 v8.2.0820
patch 8.2.0820: Vim9: function type isn't set until compiled
Commit: https://github.com/vim/vim/commit/6ff71d8b7fbdf667a2f119a2487302e240961816
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 24 23:45:24 2020 +0200
patch 8.2.0820: Vim9: function type isn't set until compiled
Problem: Vim9: function type isn't set until compiled.
Solution: Set function type early.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 25 May 2020 00:00: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}\")