2015-03-01 08:36:10 -07:00
|
|
|
#ifndef AUTO_VERSIONDEF_H
|
|
|
|
#define AUTO_VERSIONDEF_H
|
|
|
|
|
|
|
|
#define NVIM_VERSION_MAJOR @NVIM_VERSION_MAJOR@
|
|
|
|
#define NVIM_VERSION_MINOR @NVIM_VERSION_MINOR@
|
|
|
|
#define NVIM_VERSION_PATCH @NVIM_VERSION_PATCH@
|
|
|
|
#define NVIM_VERSION_PRERELEASE "@NVIM_VERSION_PRERELEASE@"
|
2019-10-01 18:45:59 -07:00
|
|
|
|
2015-11-01 15:08:38 -07:00
|
|
|
#cmakedefine NVIM_VERSION_MEDIUM "@NVIM_VERSION_MEDIUM@"
|
2019-10-01 18:45:59 -07:00
|
|
|
#ifndef NVIM_VERSION_MEDIUM
|
|
|
|
# include "auto/versiondef_git.h"
|
|
|
|
#endif
|
2015-11-01 15:08:38 -07:00
|
|
|
|
2016-10-26 06:20:00 -07:00
|
|
|
#define NVIM_API_LEVEL @NVIM_API_LEVEL@
|
|
|
|
#define NVIM_API_LEVEL_COMPAT @NVIM_API_LEVEL_COMPAT@
|
|
|
|
#define NVIM_API_PRERELEASE @NVIM_API_PRERELEASE@
|
api: Nvim version, API level #5386
The API level is disconnected from the NVIM version. The API metadata
holds the current API level, and the lowest backwards-compatible level
supported by this instance.
Release 0.1.6 will be the first release reporting the Nvim version and
API level.
metadata['version'] = {
major: 0,
minor: 1,
patch: 6,
prerelease: true,
api_level: 1,
api_compatible: 0,
}
The API level may remain unchanged across Neovim releases if the API has
not changed.
When changing the API the CMake variable NVIM_API_PRERELEASE is set to
true, and NVIM_API_CURRENT/NVIM_API_COMPATIBILITY are incremented
accordingly.
The functional tests check the API table against fixtures of past
versions of Neovim. It compares all the functions in the old table with
the new one, it does ignore some metadata attributes that do not alter
the function signature or were removed since 0.1.5. Currently the only
fixture is 0.mpack, generated from Neovim 0.1.5 with nvim --api-info.
2016-09-25 10:46:37 -07:00
|
|
|
|
2023-02-03 02:53:57 -07:00
|
|
|
#define NVIM_VERSION_CFLAGS "${CMAKE_C_COMPILER} $<JOIN:$<TARGET_PROPERTY:nvim,COMPILE_OPTIONS>, > -D$<JOIN:$<TARGET_PROPERTY:nvim,COMPILE_DEFINITIONS>, -D> -I$<JOIN:$<TARGET_PROPERTY:nvim,INCLUDE_DIRECTORIES>, -I>"
|
2023-02-02 16:00:15 -07:00
|
|
|
#define NVIM_VERSION_BUILD_TYPE "$<CONFIG>"
|
2015-03-01 08:36:10 -07:00
|
|
|
|
|
|
|
#endif // AUTO_VERSIONDEF_H
|