Blender  V3.3
BKE_blender_version.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
4 #include "BLI_utildefines.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
21 /* Blender major and minor version. */
22 #define BLENDER_VERSION 303
23 /* Blender patch version for bugfix releases. */
24 #define BLENDER_VERSION_PATCH 20
26 #define BLENDER_VERSION_CYCLE release
27 
28 /* Blender file format version. */
29 #define BLENDER_FILE_VERSION BLENDER_VERSION
30 #define BLENDER_FILE_SUBVERSION 6
31 
32 /* Minimum Blender version that supports reading file written with the current
33  * version. Older Blender versions will test this and cancel loading the file, showing a warning to
34  * the user.
35  *
36  * See https://wiki.blender.org/wiki/Process/Compatibility_Handling for details. */
37 #define BLENDER_FILE_MIN_VERSION 300
38 #define BLENDER_FILE_MIN_SUBVERSION 43
39 
41 const char *BKE_blender_version_string(void);
42 
43 /* Returns true when version cycle is alpha, otherwise (beta, rc) returns false. */
45 
55  const size_t str_buff_len,
56  const short file_version,
57  const short file_subversion);
58 
59 #ifdef __cplusplus
60 }
61 #endif
bool BKE_blender_version_is_alpha(void)
Definition: blender.c:149
void BKE_blender_version_blendfile_string_from_values(char *str_buff, const size_t str_buff_len, const short file_version, const short file_subversion)
Definition: blender.c:129
const char * BKE_blender_version_string(void)
Definition: blender.c:124