comparison src/vim.h @ 19912:d4fa9db88d16 v8.2.0512

patch 8.2.0512: Vim9: no optional arguments in func type Commit: https://github.com/vim/vim/commit/5deeb3f1f9db4eabd36e99cbf857fe376eb37e10 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 5 17:08:17 2020 +0200 patch 8.2.0512: Vim9: no optional arguments in func type Problem: Vim9: no optional arguments in func type. Solution: Check for question mark after type. Find function reference without function().
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Apr 2020 17:15:25 +0200
parents 9e428147e4ee
children aadd1cae2ff5
comparison
equal deleted inserted replaced
19911:70edfdef3b83 19912:d4fa9db88d16
1749 # define INIT(x) 1749 # define INIT(x)
1750 # define INIT2(a, b) 1750 # define INIT2(a, b)
1751 # define INIT3(a, b, c) 1751 # define INIT3(a, b, c)
1752 # define INIT4(a, b, c, d) 1752 # define INIT4(a, b, c, d)
1753 # define INIT5(a, b, c, d, e) 1753 # define INIT5(a, b, c, d, e)
1754 # define INIT6(a, b, c, d, e, f)
1754 #else 1755 #else
1755 # ifndef INIT 1756 # ifndef INIT
1756 # define INIT(x) x 1757 # define INIT(x) x
1757 # define INIT2(a, b) = {a, b} 1758 # define INIT2(a, b) = {a, b}
1758 # define INIT3(a, b, c) = {a, b, c} 1759 # define INIT3(a, b, c) = {a, b, c}
1759 # define INIT4(a, b, c, d) = {a, b, c, d} 1760 # define INIT4(a, b, c, d) = {a, b, c, d}
1760 # define INIT5(a, b, c, d, e) = {a, b, c, d, e} 1761 # define INIT5(a, b, c, d, e) = {a, b, c, d, e}
1762 # define INIT6(a, b, c, d, e, f) = {a, b, c, d, e, f}
1761 # define DO_INIT 1763 # define DO_INIT
1762 # endif 1764 # endif
1763 #endif 1765 #endif
1764 1766
1765 #define MAX_MCO 6 // maximum value for 'maxcombine' 1767 #define MAX_MCO 6 // maximum value for 'maxcombine'