Mercurial > vim
view src/typemap @ 22157:ba81f5e300b7 v8.2.1628
patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()
Commit: https://github.com/vim/vim/commit/418155def2aa45afd7fc034db341dc874b00af3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 6 18:39:38 2020 +0200
patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()
Problem: Vim9: cannot pass "true" to timer_paused().
Solution: Use tv_get_bool(). (closes https://github.com/vim/vim/issues/6891)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Sep 2020 18:45: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}\")