libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Version.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdint.h>
4
5#ifndef LUS_VERSION_EPOCH
6#define LUS_VERSION_EPOCH 0
7#endif
8
9#ifndef LUS_VERSION_MAJOR
10#define LUS_VERSION_MAJOR 0
11#endif
12
13#ifndef LUS_VERSION_MINOR
14#define LUS_VERSION_MINOR 0
15#endif
16
17#ifndef LUS_VERSION_PATCH
18#define LUS_VERSION_PATCH 0
19#endif
20
21#define SHIP_VERSION_EPOCH LUS_VERSION_EPOCH
22#define SHIP_VERSION_MAJOR LUS_VERSION_MAJOR
23#define SHIP_VERSION_MINOR LUS_VERSION_MINOR
24#define SHIP_VERSION_PATCH LUS_VERSION_PATCH
25
26#define SHIP_PACK_VERSION(epoch, major, minor, patch) \
27 ((((uint32_t)((epoch)&0xFF)) << 24) | (((uint32_t)((major)&0xFF)) << 16) | (((uint32_t)((minor)&0xFF)) << 8) | \
28 ((uint32_t)((patch)&0xFF)))
29
30#define SHIP_VERSION_U32 \
31 SHIP_PACK_VERSION(SHIP_VERSION_EPOCH, SHIP_VERSION_MAJOR, SHIP_VERSION_MINOR, SHIP_VERSION_PATCH)
32
33#ifdef __cplusplus
34namespace Ship {
35inline constexpr uint32_t Version = SHIP_VERSION_U32;
36}
37#endif
#define SHIP_VERSION_U32
Definition Version.h:30
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14
constexpr uint32_t Version
Definition Version.h:35