24 #ifndef util_Basics_hpp
25 #define util_Basics_hpp
47 static bool ok() {
return true ; }
53 #ifndef DOXYGEN_COMPILE
56 unsigned size_char =
sizeof(
unsigned char ) ,
57 unsigned size_short =
sizeof(
unsigned short ) ,
58 unsigned size_int =
sizeof(
unsigned int ) ,
59 unsigned size_long =
sizeof(
unsigned long ) ,
60 unsigned size_ptr =
sizeof(
void * ) >
61 struct IntegerFundamentalTypes ;
64 struct IntegerFundamentalTypes<1,2,4,8,4> {
65 typedef signed char int8_type ;
66 typedef unsigned char uint8_type ;
67 typedef signed short int16_type ;
68 typedef unsigned short uint16_type ;
69 typedef signed int int32_type ;
70 typedef unsigned int uint32_type ;
71 typedef signed long int64_type ;
72 typedef unsigned long uint64_type ;
73 typedef signed int intptr_type ;
74 typedef unsigned int uintptr_type ;
78 struct IntegerFundamentalTypes<1,2,4,8,8> {
79 typedef signed char int8_type ;
80 typedef unsigned char uint8_type ;
81 typedef signed short int16_type ;
82 typedef unsigned short uint16_type ;
83 typedef signed int int32_type ;
84 typedef unsigned int uint32_type ;
85 typedef signed long int64_type ;
86 typedef unsigned long uint64_type ;
87 typedef signed long intptr_type ;
88 typedef unsigned long uintptr_type ;
92 struct IntegerFundamentalTypes<1,2,4,4,4> {
93 typedef signed char int8_type ;
94 typedef unsigned char uint8_type ;
95 typedef signed short int16_type ;
96 typedef unsigned short uint16_type ;
97 typedef signed int int32_type ;
98 typedef unsigned int uint32_type ;
99 typedef signed long long int64_type ;
100 typedef unsigned long long uint64_type ;
101 typedef signed long intptr_type ;
102 typedef unsigned long uintptr_type ;
106 struct IntegerFundamentalTypes<1,2,4,4,8> {
107 typedef signed char int8_type ;
108 typedef unsigned char uint8_type ;
109 typedef signed short int16_type ;
110 typedef unsigned short uint16_type ;
111 typedef signed int int32_type ;
112 typedef unsigned int uint32_type ;
113 typedef signed long long int64_type ;
114 typedef unsigned long long uint64_type ;
115 typedef signed long long intptr_type ;
116 typedef unsigned long long uintptr_type ;
121 typedef IntegerFundamentalTypes<>::int8_type int8_type ;
122 typedef IntegerFundamentalTypes<>::uint8_type uint8_type ;
123 typedef IntegerFundamentalTypes<>::int16_type int16_type ;
124 typedef IntegerFundamentalTypes<>::uint16_type uint16_type ;
125 typedef IntegerFundamentalTypes<>::int32_type int32_type ;
126 typedef IntegerFundamentalTypes<>::uint32_type uint32_type ;
127 typedef IntegerFundamentalTypes<>::int64_type int64_type ;
128 typedef IntegerFundamentalTypes<>::uint64_type uint64_type ;
129 typedef IntegerFundamentalTypes<>::intptr_type intptr_type ;
130 typedef IntegerFundamentalTypes<>::uintptr_type uintptr_type ;
Compiler-enforced value of 'expression == true'.