Mercurial > vim
view src/typemap @ 20083:0da696bd7352 v8.2.0597
patch 8.2.0597: test_eval is old style
Commit: https://github.com/vim/vim/commit/90455cfa87f84f16179c19241b034abbfa8b3c9a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Apr 18 21:56:38 2020 +0200
patch 8.2.0597: test_eval is old style
Problem: Test_eval is old style.
Solution: Change some tests to a new style test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 18 Apr 2020 22: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}\")