0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2683: build failure without the +eval feature

Problem:    Build failure without the +eval feature.
Solution:   Add #ifdef.
This commit is contained in:
Bram Moolenaar
2021-04-01 13:17:50 +02:00
parent 529fb5a5f6
commit b91d3f857f
2 changed files with 4 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ in_vim9script(void)
|| (cmdmod.cmod_flags & CMOD_VIM9CMD);
}
#if defined(FEAT_EVAL) || defined(PROTO)
/*
* Return TRUE if the current script is Vim9 script.
* This also returns TRUE in a legacy function in a Vim9 script.
@@ -42,6 +43,7 @@ current_script_is_vim9(void)
&& SCRIPT_ITEM(current_sctx.sc_sid)->sn_version
== SCRIPT_VERSION_VIM9;
}
#endif
/*
* ":vim9script".