view ci/if_ver-cmd.vim @ 30916:1b4a3cd8c3f7 v9.0.0792

patch 9.0.0792: MS-Windows: compiler complains about unused function Commit: https://github.com/vim/vim/commit/bf72e0c67f26ea7c8fd941fdd1533c24c7b6cb43 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 18 21:48:14 2022 +0100 patch 9.0.0792: MS-Windows: compiler complains about unused function Problem: MS-Windows: compiler complains about unused function. Solution: Add #ifdef. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Oct 2022 23:00:06 +0200
parents 27ff44268da5
children
line wrap: on
line source

" Provide 'PrintVer' command to print the interface versions.

func s:print_ver(lang, ...)
  if has(a:lang)
    exec a:lang join(a:000)
  else
    echo 'N/A'
  endif
  echo ''
endfunc

command -nargs=+ PrintVer call <SID>print_ver(<f-args>)