Mercurial > vim
view src/typemap @ 20399:d1a54d2bd145 v8.2.0754
patch 8.2.0754: Vim9: No test for forward declaration
Commit: https://github.com/vim/vim/commit/a5d0077efbced85fcc63f203937b13efd55d036f
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 14 23:20:55 2020 +0200
patch 8.2.0754: Vim9: No test for forward declaration
Problem: Vim9: No test for forward declaration.
Solution: Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 May 2020 23:30: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}\")