48 return -(1LL << (bit-1));
54 return (1LL << (bit-1)) - 1LL;
58 std::string getLimitsDefines(
bool c99)
const;
63 return value >= min_value(int_bit) && value <= max_value(int_bit);
67 const unsigned long long intMax = max_value(int_bit);
68 return value <= intMax;
72 return value >= min_value(long_bit) && value <= max_value(long_bit);
76 const unsigned long long longMax = max_value(long_bit);
77 return value <= longMax;
81 const unsigned long long longLongMax = max_value(long_long_bit);
82 return value <= longLongMax;
124 bool set(
const std::string& platformstr, std::string& errstr,
const std::vector<std::string>& paths = {},
bool verbose =
false);
133 bool loadFromFile(
const char exename[],
const std::string &filename,
bool verbose =
false);
136 bool loadFromXmlDocument(
const tinyxml2::XMLDocument *doc);
143 return type == Type::Win32A ||
144 type == Type::Win32W ||
154 case Type::Unspecified:
155 return "unspecified";
169 return "platformFile";
171 throw std::runtime_error(
"unknown platform");
176 return max_value(char_bit + 1);
180 return max_value(char_bit);
184 return min_value(char_bit);
Information about a class type.
std::string toString(Color c)
cppstd_t
C++ code standard.