diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-29 19:14:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-29 19:14:42 +0100 |
commit | fa1039760e8c1a0c7a2a722160bd3d71a4736e61 (patch) | |
tree | 3749fc4f1e8e0cdccdde2c131dfca30b3b07917c /src/errors.h | |
parent | 9f573a8df02d9f699a43d2afbd1d2841d700b9ad (diff) | |
download | vim-git-fa1039760e8c1a0c7a2a722160bd3d71a4736e61.tar.gz |
patch 9.0.0623: error for modifying a const is not detected at compile timev9.0.0623
Problem: Error for modifying a const is not detected at compile time.
Solution: Add TTFLAG_CONST and check for it in add() and extend().
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index 7f23cc855..868ed5721 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3332,4 +3332,6 @@ EXTERN char e_cannot_use_length_endcol_and_endlnum_with_text[] #ifdef FEAT_EVAL EXTERN char e_loop_nesting_too_deep[] INIT(= N_("E1306: Loop nesting too deep")); +EXTERN char e_argument_nr_trying_to_modify_const_str[] + INIT(= N_("E1307: Argument %d: Trying to modify a const %s")); #endif |