diff options
author | Mattes D <github@xoft.cz> | 2015-03-21 13:00:20 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-03-21 13:00:20 +0100 |
commit | b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d (patch) | |
tree | 2cb73fbb8e15ca8f65d794ddb9d9717cdd27f5ce /src/Globals.h | |
parent | APIDump: Added inheritance checking. (diff) | |
download | cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.gz cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.bz2 cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.lz cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.xz cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.tar.zst cuberite-b1d4b3bb96629b3624e8328d7b1a0bce5333bb7d.zip |
Diffstat (limited to 'src/Globals.h')
-rw-r--r-- | src/Globals.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Globals.h b/src/Globals.h index 7c2ab38d8..bd180c08f 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -132,13 +132,15 @@ // Integral types with predefined sizes: -typedef long long Int64; -typedef int Int32; -typedef short Int16; +typedef signed long long Int64; +typedef signed int Int32; +typedef signed short Int16; +typedef signed char Int8; typedef unsigned long long UInt64; typedef unsigned int UInt32; typedef unsigned short UInt16; +typedef unsigned char UInt8; typedef unsigned char Byte; @@ -156,10 +158,12 @@ class SizeChecker<T, Size, true> template class SizeChecker<Int64, 8>; template class SizeChecker<Int32, 4>; template class SizeChecker<Int16, 2>; +template class SizeChecker<Int8, 1>; template class SizeChecker<UInt64, 8>; template class SizeChecker<UInt32, 4>; template class SizeChecker<UInt16, 2>; +template class SizeChecker<UInt8, 1>; // A macro to disallow the copy constructor and operator = functions // This should be used in the private: declarations for any class that shouldn't allow copying itself |