|
1 | 1 | #pragma once |
2 | 2 |
|
3 | 3 | typedef char int8; |
4 | | -static_assert(sizeof(int8) == 0x1); |
| 4 | +COMPILE_ASSERT(sizeof(int8) == 0x1); |
5 | 5 |
|
6 | 6 | typedef unsigned char uns8; |
7 | | -static_assert(sizeof(uns8) == 0x1); |
| 7 | +COMPILE_ASSERT(sizeof(uns8) == 0x1); |
8 | 8 |
|
9 | 9 | typedef short int16; |
10 | | -static_assert(sizeof(int16) == 0x2); |
| 10 | +COMPILE_ASSERT(sizeof(int16) == 0x2); |
11 | 11 |
|
12 | 12 | typedef unsigned short uns16; |
13 | | -static_assert(sizeof(uns16) == 0x2); |
| 13 | +COMPILE_ASSERT(sizeof(uns16) == 0x2); |
14 | 14 |
|
15 | 15 | typedef long int32; |
16 | | -static_assert(sizeof(int32) == 0x4); |
| 16 | +COMPILE_ASSERT(sizeof(int32) == 0x4); |
17 | 17 |
|
18 | 18 | typedef unsigned long uns32; |
19 | | -static_assert(sizeof(uns32) == 0x4); |
| 19 | +COMPILE_ASSERT(sizeof(uns32) == 0x4); |
20 | 20 |
|
21 | 21 | typedef long long int64; |
22 | | -static_assert(sizeof(int64) == 0x8); |
| 22 | +COMPILE_ASSERT(sizeof(int64) == 0x8); |
23 | 23 |
|
24 | 24 | typedef unsigned long long uns64; |
25 | | -static_assert(sizeof(uns64) == 0x8); |
| 25 | +COMPILE_ASSERT(sizeof(uns64) == 0x8); |
26 | 26 |
|
27 | 27 | typedef float real32; |
28 | | -static_assert(sizeof(real32) == 0x4); |
| 28 | +COMPILE_ASSERT(sizeof(real32) == 0x4); |
29 | 29 |
|
30 | 30 | typedef double real64; |
31 | | -static_assert(sizeof(real64) == 0x8); |
| 31 | +COMPILE_ASSERT(sizeof(real64) == 0x8); |
32 | 32 |
|
33 | 33 | typedef unsigned char byte; |
34 | | -static_assert(sizeof(byte) == 0x1); |
| 34 | +COMPILE_ASSERT(sizeof(byte) == 0x1); |
35 | 35 |
|
36 | 36 | typedef char utf8; |
37 | | -static_assert(sizeof(utf8) == 0x1); |
| 37 | +COMPILE_ASSERT(sizeof(utf8) == 0x1); |
38 | 38 |
|
39 | 39 | typedef unsigned long tag; |
40 | | -static_assert(sizeof(tag) == 0x4); |
| 40 | +COMPILE_ASSERT(sizeof(tag) == 0x4); |
41 | 41 |
|
42 | 42 | typedef long string_id; |
43 | | -static_assert(sizeof(string_id) == 0x4); |
| 43 | +COMPILE_ASSERT(sizeof(string_id) == 0x4); |
44 | 44 |
|
0 commit comments