Using long long unsigned only on 64 bit

This commit is contained in:
WolverinDEV 2021-02-05 14:23:29 +01:00
parent c0790984ee
commit d213c0ade0
2 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,9 @@ CONVERTER_PRIMITIVE_ST(float, std::stof(std::string{str}));
CONVERTER_PRIMITIVE_ST(double, std::stod(std::string{str}));
CONVERTER_PRIMITIVE_ST(long_double, std::stold(std::string{str}));
//CONVERTER_PRIMITIVE_ST(long_long_unsigned_int_t, std::stoull(std::string{str}));
#if __x86_64__
CONVERTER_PRIMITIVE_ST(long_long_unsigned_int_t, std::stoull(std::string{str}));
#endif
CONVERTER_ST(std__string, return std::string{str};, return std::any_cast<std__string>(value););
CONVERTER_ST(std__string_view, return str;, return std::string{std::any_cast<std__string_view>(value)};);

View File

@ -52,9 +52,9 @@ namespace ts {
CONVERTER_PRIMITIVE(int64_t);
CONVERTER_PRIMITIVE(uint64_t);
//CONVERTER_PRIMITIVE(long_long_unsigned_int_t);
#if __x86_64__
CONVERTER_PRIMITIVE(long_long_unsigned_int_t);
#endif
typedef std::string std__string;
typedef std::string_view std__string_view;
typedef const char* const_char__;