00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 #ifndef SHTTL_TYPES_H
00033 #define SHTTL_TYPES_H
00034
00035
00036
00037
00038
00039 #ifdef _MSC_VER
00040
00041 namespace shttl
00042 {
00043 typedef signed __int64 s64;
00044 typedef unsigned __int64 u64;
00045 typedef signed __int32 s32;
00046 typedef unsigned __int32 u32;
00047 typedef signed __int16 s16;
00048 typedef unsigned __int16 u16;
00049 typedef signed __int8 s8;
00050 typedef unsigned __int8 u8;
00051
00052 typedef float f32;
00053 typedef double f64;
00054 };
00055
00056 #else
00057
00058 #include <inttypes.h>
00059 namespace shttl
00060 {
00061 typedef int64_t s64;
00062 typedef uint64_t u64;
00063 typedef int32_t s32;
00064 typedef uint32_t u32;
00065 typedef int16_t s16;
00066 typedef uint16_t u16;
00067 typedef int8_t s8;
00068 typedef uint8_t u8;
00069
00070 typedef float f32;
00071 typedef double f64;
00072 };
00073
00074 #endif
00075
00076 namespace shttl
00077 {
00078 typedef s64 ssize_t;
00079 }
00080
00081
00082 #ifndef SHTTL_DISABLE_DEBUG
00083 #define SHTTL_DEBUG
00084 #endif
00085
00086 #ifdef SHTTL_DEBUG
00087
00088 #ifndef SHTTL_ASSERT
00089 #define SHTTL_ASSERT(x) assert(x)
00090 #endif
00091
00092 #else
00093
00094 #ifndef SHTTL_ASSERT
00095 #define SHTTL_ASSERT(x)
00096 #endif
00097
00098 #endif
00099
00100
00101 #endif // #ifndef SHTTL_TYPES_H
00102