Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
VersionDefs.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include "VersionDefs.inl"

Go to the source code of this file.

Macros

#define kStroika_Version_Stage_Dev   0x1
 
#define Stroika_Make_FULL_VERSION(_Major_, _Minor_, _Stage_, _SubStage_, _FinalBuild_)    ((_Major_ << 24) | (_Minor_ << 16) | (_Stage_ << 13) | (_SubStage_ << 1) | (_FinalBuild_))
 

Detailed Description

Note
Code-Status: Release

This file defines the part of the version stuff that can be safely included anywhere - even in a non-C++ file (e.g. resource compiler).

Definition in file VersionDefs.h.

Macro Definition Documentation

◆ kStroika_Version_Stage_Dev

#define kStroika_Version_Stage_Dev   0x1

We use a MACRO here so we can use in languages other than C++, and so we can use these in #if macro pre-processor commands.

Definition at line 68 of file VersionDefs.h.

◆ Stroika_Make_FULL_VERSION

#define Stroika_Make_FULL_VERSION (   _Major_,
  _Minor_,
  _Stage_,
  _SubStage_,
  _FinalBuild_ 
)     ((_Major_ << 24) | (_Minor_ << 16) | (_Stage_ << 13) | (_SubStage_ << 1) | (_FinalBuild_))

We use a MACRO here so we can use in languages other than C++, and so we can use these in #if macro pre-processor commands.

See also
Binary32BitFullVersionType for bit layout
Example Usage
// be sure to #include "Stroika/Foundation/Common/StroikaVersion.h" for kStroika_Version_FullVersion else kStroika_Version_FullVersion acts as if 0, and always use old code
#if kStroika_Version_FullVersion >= Stroika_Make_FULL_VERSION (2, 0, kStroika_Version_Stage_Alpha, 156, 0)
use new function;
#else
use older API
#endif

Definition at line 88 of file VersionDefs.h.