Mercurial > vim
comparison src/vim9script.c @ 24285:28b8ede0d2b9 v8.2.2683
patch 8.2.2683: build failure without the +eval feature
Commit: https://github.com/vim/vim/commit/b91d3f857fb6aadbbc01f80f775967bb40d361de
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 1 13:17:50 2021 +0200
patch 8.2.2683: build failure without the +eval feature
Problem: Build failure without the +eval feature.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 01 Apr 2021 13:30:03 +0200 |
parents | bcfff560e089 |
children | 5c6ccab68d1e |
comparison
equal
deleted
inserted
replaced
24284:23d777ef9e50 | 24285:28b8ede0d2b9 |
---|---|
29 // script. | 29 // script. |
30 return current_sctx.sc_version == SCRIPT_VERSION_VIM9 | 30 return current_sctx.sc_version == SCRIPT_VERSION_VIM9 |
31 || (cmdmod.cmod_flags & CMOD_VIM9CMD); | 31 || (cmdmod.cmod_flags & CMOD_VIM9CMD); |
32 } | 32 } |
33 | 33 |
34 #if defined(FEAT_EVAL) || defined(PROTO) | |
34 /* | 35 /* |
35 * Return TRUE if the current script is Vim9 script. | 36 * Return TRUE if the current script is Vim9 script. |
36 * This also returns TRUE in a legacy function in a Vim9 script. | 37 * This also returns TRUE in a legacy function in a Vim9 script. |
37 */ | 38 */ |
38 int | 39 int |
40 { | 41 { |
41 return SCRIPT_ID_VALID(current_sctx.sc_sid) | 42 return SCRIPT_ID_VALID(current_sctx.sc_sid) |
42 && SCRIPT_ITEM(current_sctx.sc_sid)->sn_version | 43 && SCRIPT_ITEM(current_sctx.sc_sid)->sn_version |
43 == SCRIPT_VERSION_VIM9; | 44 == SCRIPT_VERSION_VIM9; |
44 } | 45 } |
46 #endif | |
45 | 47 |
46 /* | 48 /* |
47 * ":vim9script". | 49 * ":vim9script". |
48 */ | 50 */ |
49 void | 51 void |