Mercurial > vim
view src/typemap @ 16227:a70f0d6686c4 v8.1.1118
patch 8.1.1118: a couple of conditions are hard to understand
commit https://github.com/vim/vim/commit/652de23dc7abf6aa2721ccee7fe279b5cce8069c
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 4 20:13:09 2019 +0200
patch 8.1.1118: a couple of conditions are hard to understand
Problem: A couple of conditions are hard to understand.
Solution: Split the conditions into pieces. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/3879)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 04 Apr 2019 20:15:05 +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}\")