X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Firrlichttypes.h;h=33bfa9ee953b4d5ef85943703c8000107d64fc10;hb=1d8d01074fdb52946f81110bebf1d001185b394b;hp=bead64407ed1717e7df21f7758fb27bbc0f28483;hpb=a1ea017b512ea8f99c40dca52a57ff58054c5acc;p=dragonfireclient.git diff --git a/src/irrlichttypes.h b/src/irrlichttypes.h index bead64407..33bfa9ee9 100644 --- a/src/irrlichttypes.h +++ b/src/irrlichttypes.h @@ -28,7 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc., * regardless of the compiler. */ #ifndef _MSC_VER -# include +# include #endif #include @@ -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