diff options
author | Anton Samokhvalov <[email protected]> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/platform.cpp | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) |
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/platform.cpp')
-rw-r--r-- | util/system/platform.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/util/system/platform.cpp b/util/system/platform.cpp index f08c85eb38c..9421235bb43 100644 --- a/util/system/platform.cpp +++ b/util/system/platform.cpp @@ -1,18 +1,18 @@ -#include "platform.h" - -#include <cstddef> - -static_assert(sizeof(char) == SIZEOF_CHAR, "incorrect SIZEOF_CHAR"); -static_assert(sizeof(short) == SIZEOF_SHORT, "incorrect SIZEOF_SHORT"); -static_assert(sizeof(int) == SIZEOF_INT, "incorrect SIZEOF_INT"); -static_assert(sizeof(long) == SIZEOF_LONG, "incorrect SIZEOF_LONG"); -static_assert(sizeof(long long) == SIZEOF_LONG_LONG, "incorrect SIZEOF_LONG_LONG"); - -static_assert(sizeof(unsigned char) == SIZEOF_UNSIGNED_CHAR, "incorrect SIZEOF_UNSIGNED_CHAR"); -static_assert(sizeof(unsigned short) == SIZEOF_UNSIGNED_SHORT, "incorrect SIZEOF_UNSIGNED_SHORT"); -static_assert(sizeof(unsigned int) == SIZEOF_UNSIGNED_INT, "incorrect SIZEOF_UNSIGNED_INT"); -static_assert(sizeof(unsigned long) == SIZEOF_UNSIGNED_LONG, "incorrect SIZEOF_UNSIGNED_LONG"); -static_assert(sizeof(unsigned long long) == SIZEOF_UNSIGNED_LONG_LONG, "incorrect SIZEOF_UNSIGNED_LONG_LONG"); - -static_assert(sizeof(void*) == SIZEOF_PTR, "incorrect SIZEOF_PTR"); -static_assert(sizeof(void*) == sizeof(size_t), "unsupported platform"); +#include "platform.h" + +#include <cstddef> + +static_assert(sizeof(char) == SIZEOF_CHAR, "incorrect SIZEOF_CHAR"); +static_assert(sizeof(short) == SIZEOF_SHORT, "incorrect SIZEOF_SHORT"); +static_assert(sizeof(int) == SIZEOF_INT, "incorrect SIZEOF_INT"); +static_assert(sizeof(long) == SIZEOF_LONG, "incorrect SIZEOF_LONG"); +static_assert(sizeof(long long) == SIZEOF_LONG_LONG, "incorrect SIZEOF_LONG_LONG"); + +static_assert(sizeof(unsigned char) == SIZEOF_UNSIGNED_CHAR, "incorrect SIZEOF_UNSIGNED_CHAR"); +static_assert(sizeof(unsigned short) == SIZEOF_UNSIGNED_SHORT, "incorrect SIZEOF_UNSIGNED_SHORT"); +static_assert(sizeof(unsigned int) == SIZEOF_UNSIGNED_INT, "incorrect SIZEOF_UNSIGNED_INT"); +static_assert(sizeof(unsigned long) == SIZEOF_UNSIGNED_LONG, "incorrect SIZEOF_UNSIGNED_LONG"); +static_assert(sizeof(unsigned long long) == SIZEOF_UNSIGNED_LONG_LONG, "incorrect SIZEOF_UNSIGNED_LONG_LONG"); + +static_assert(sizeof(void*) == SIZEOF_PTR, "incorrect SIZEOF_PTR"); +static_assert(sizeof(void*) == sizeof(size_t), "unsupported platform"); |