Blender  V3.3
Macros | Functions
BKE_blender_version.h File Reference
#include "BLI_utildefines.h"

Go to the source code of this file.

Macros

#define BLENDER_VERSION   303
 
#define BLENDER_VERSION_PATCH   21
 
#define BLENDER_VERSION_CYCLE   release
 
#define BLENDER_FILE_VERSION   BLENDER_VERSION
 
#define BLENDER_FILE_SUBVERSION   6
 
#define BLENDER_FILE_MIN_VERSION   300
 
#define BLENDER_FILE_MIN_SUBVERSION   43
 

Functions

const char * BKE_blender_version_string (void)
 
bool BKE_blender_version_is_alpha (void)
 
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)
 

Macro Definition Documentation

◆ BLENDER_FILE_MIN_SUBVERSION

#define BLENDER_FILE_MIN_SUBVERSION   43

Definition at line 38 of file BKE_blender_version.h.

◆ BLENDER_FILE_MIN_VERSION

#define BLENDER_FILE_MIN_VERSION   300

Definition at line 37 of file BKE_blender_version.h.

◆ BLENDER_FILE_SUBVERSION

#define BLENDER_FILE_SUBVERSION   6

Definition at line 30 of file BKE_blender_version.h.

◆ BLENDER_FILE_VERSION

#define BLENDER_FILE_VERSION   BLENDER_VERSION

Definition at line 29 of file BKE_blender_version.h.

◆ BLENDER_VERSION

#define BLENDER_VERSION   303

The lines below use regex from scripts to extract their values, Keep this in mind when modifying this file and keep this comment above the defines.

Note
Use STRINGIFY() rather than defining with quotes.

Definition at line 22 of file BKE_blender_version.h.

◆ BLENDER_VERSION_CYCLE

#define BLENDER_VERSION_CYCLE   release

Blender release cycle stage: alpha/beta/rc/release.

Definition at line 26 of file BKE_blender_version.h.

◆ BLENDER_VERSION_PATCH

#define BLENDER_VERSION_PATCH   21

Definition at line 24 of file BKE_blender_version.h.

Function Documentation

◆ BKE_blender_version_blendfile_string_from_values()

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 
)

Fill in given string buffer with user-readable formated file version and subversion (if provided).

Parameters
str_buffa char buffer where the formated string is written, minimal recommended size is 8, or 16 if subversion is provided.
file_subversionthe file subversion, if given value < 0, it is ignored, and only the file_version is used.

Definition at line 129 of file blender.c.

References BLI_snprintf().

Referenced by file_forwardcompat_detailed_info_show(), is_minversion_older_than_blender(), and uiTemplateStatusInfo().

◆ BKE_blender_version_is_alpha()

bool BKE_blender_version_is_alpha ( void  )

Definition at line 149 of file blender.c.

References BLENDER_VERSION_CYCLE, STREQ, and STRINGIFY.

Referenced by BLO_sanitize_experimental_features_userpref_blend().

◆ BKE_blender_version_string()

const char* BKE_blender_version_string ( void  )