Melee Modding Library  2.0.0
A C library for modding Super Smash Bros Melee
version.h
Go to the documentation of this file.
1 
7 #ifndef MML_VERSION_H
8 #define MML_VERSION_H
9 
10 #include "gctypes.h"
11 
13 #define MAJOR_MASK 0xFF000000
14 #define MINOR_MASK 0x00FF0000
15 #define REVISION_MASK 0x0000FFFF
16 
17 extern u32 _mml_version;
21 #define MML_VERSION_MAJOR (((_mml_version & MAJOR_MASK) >> 24) & 0xFF)
22 
24 #define MML_VERSION_MINOR (((_mml_version & MINOR_MASK) >> 16) & 0xFF)
25 
27 #define MML_VERSION_REVISION (_mml_version & REVISION_MASK)
28 
30 #define MML_VERSION_CHECK(maj, min)) ((maj == MML_VERSION_MAJOR) && (min <= MML_VERSION_MINOR))
31 
55 #endif
Data types for the gamecube.
uint32_t u32
Definition: gctypes.h:16