blob: bd52ac47aeef5299bcd2987cedcfed7c6d32a57b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#ifndef __TYPES_H__
#define __TYPES_H__
#include "stdlib.h"
#include "stdint.h"
#include "sys/types.h"
#define E33_EXIT_SUCCESS 0
#define E33_EXIT_FAILURE 1
#define E33_TRUE 1
#define E33_FALSE 0
typedef int8_t i8;
typedef int16_t i16;
typedef int32_t i32;
typedef int64_t i64;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typedef float f32;
typedef double f64;
typedef uintptr_t uPtr;
typedef ssize_t Size;
typedef size_t uSize;
typedef const char * String;
typedef Size err;
typedef Size boolean;
#define sizeof(x) (Size)sizeof(x)
#define alignof(x) (Size)_Alignof(x)
#define countof(a) (sizeof(a) / sizeof(*(a)))
#define lengthof(s) (countof(s) - 1)
#define assert(c) while( !(c) ){ __builtin_unreachable(); }
#define bp(V) logd( "BREAKPOINT :: %d", V );
#endif /* __TYPES_H__ */
|