Choco OS  V.0.16.9.0
Join to the chocolate world
oc_version.h
Go to the documentation of this file.
1 
28 #ifndef INC_OC_VERSION_H_
29 #define INC_OC_VERSION_H_
30 
31 #include <oc_compiler.h>
32 
38 #define _________________________________________MACROS_SECTION_____________________________________________________________________________
39 
42 #define oC_Version_Make( MAJOR , YEAR , MONTH , PATCH ) ( (PATCH<<0) | (MONTH<<8) | (YEAR<<16) | (MAJOR<<24) )
43 
44 #define oC_VERSION oC_Version_Make(oC_BUILD_MAJOR,oC_BUILD_YEAR,oC_BUILD_MONTH,oC_BUILD_PATCH)
45 
46 #define oC_VERSION_NAME oC_BUILD_NAME
47 
48 #define oC_Version_IsNewerThanOther( OtherVersion ) (OtherVersion) < oC_VERSION
49 #define oC_Version_IsNewerThan( MAJOR , YEAR , MONTH , PATCH ) oC_Version_IsNewerThanOther( oC_Version_Make(MAJOR,YEAR,MONTH,PATCH) )
50 #define oC_Version_IsEqualToOther( OtherVersion ) (OtherVersion) == oC_VERSION
51 #define oC_Version_Is( MAJOR , YEAR , MONTH , PATCH ) oC_Version_IsEqualToOther( oC_Version_Make(MAJOR,YEAR,MONTH,PATCH) ) `
52 
53 #define oC_FULL_VERSION_STRING oC_TO_STRING(oC_BUILD_MAJOR) "."\
54  oC_TO_STRING(oC_BUILD_YEAR) "."\
55  oC_TO_STRING(oC_BUILD_MONTH) "."\
56  oC_TO_STRING(oC_BUILD_PATCH) "-"\
57  oC_TO_STRING(oC_VERSION_NAME)
58 
59 #undef _________________________________________MACROS_SECTION_____________________________________________________________________________
60 
62 #endif /* INC_OC_VERSION_H_ */
The file contains definitions for the compiler, that helps to manage errors, etc. ...