comparison src/vim.h @ 17732:1726c2db81bf v8.1.1863

patch 8.1.1863: confusing error when using a builtin function as method commit https://github.com/vim/vim/commit/9174639a82799011cfa0013cbc4c4709b3833bf0 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 16 22:22:31 2019 +0200 patch 8.1.1863: confusing error when using a builtin function as method Problem: Confusing error when using a builtin function as method while it does not support that. Solution: Add a specific error message.
author Bram Moolenaar <Bram@vim.org>
date Fri, 16 Aug 2019 22:30:04 +0200
parents 5278e5a2a4e3
children c75da1064e33
comparison
equal deleted inserted replaced
17731:314da6ab06bd 17732:1726c2db81bf
2516 #define ERROR_SCRIPT 3 2516 #define ERROR_SCRIPT 3
2517 #define ERROR_DICT 4 2517 #define ERROR_DICT 4
2518 #define ERROR_NONE 5 2518 #define ERROR_NONE 5
2519 #define ERROR_OTHER 6 2519 #define ERROR_OTHER 6
2520 #define ERROR_DELETED 7 2520 #define ERROR_DELETED 7
2521 #define ERROR_NOTMETHOD 8 // function cannot be used as a method
2521 2522
2522 /* flags for find_name_end() */ 2523 /* flags for find_name_end() */
2523 #define FNE_INCL_BR 1 /* include [] in name */ 2524 #define FNE_INCL_BR 1 /* include [] in name */
2524 #define FNE_CHECK_START 2 /* check name starts with valid character */ 2525 #define FNE_CHECK_START 2 /* check name starts with valid character */
2525 2526