mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Define and use limit constants for Irrlicht fixed-width types
This commit is contained in:
parent
b12bdcce34
commit
f0cd5da687
11 changed files with 31 additions and 16 deletions
|
@ -48,4 +48,19 @@ using namespace irr;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#define S8_MIN (-0x7F - 1)
|
||||
#define S16_MIN (-0x7FFF - 1)
|
||||
#define S32_MIN (-0x7FFFFFFF - 1)
|
||||
#define S64_MIN (-0x7FFFFFFFFFFFFFFF - 1)
|
||||
|
||||
#define S8_MAX 0x7F
|
||||
#define S16_MAX 0x7FFF
|
||||
#define S32_MAX 0x7FFFFFFF
|
||||
#define S64_MAX 0x7FFFFFFFFFFFFFFF
|
||||
|
||||
#define U8_MAX 0xFF
|
||||
#define U16_MAX 0xFFFF
|
||||
#define U32_MAX 0xFFFFFFFF
|
||||
#define U64_MAX 0xFFFFFFFFFFFFFFFF
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue