blob: 11cc72aee3711439dfb5fe50d7761b4e4adf3813 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "types.h"
#include <util/generic/typetraits.h>
#include <util/generic/typelist.h>
static_assert(sizeof(ui8) == 1, "incorrect ui8 type");
static_assert(sizeof(ui16) == 2, "incorrect ui16 type");
static_assert(sizeof(ui32) == 4, "incorrect ui32 type");
static_assert(sizeof(ui64) == 8, "incorrect ui64 type");
static_assert(sizeof(i8) == 1, "incorrect i8 type");
static_assert(sizeof(i16) == 2, "incorrect i16 type");
static_assert(sizeof(i32) == 4, "incorrect i32 type");
static_assert(sizeof(i64) == 8, "incorrect i64 type");
static_assert(sizeof(size_t) == sizeof(ssize_t), "incorrect ssize_t");
static_assert(TTypeList<ui32, ui64>::THave<size_t>::value, "incorrect size_t");
|