aboutsummaryrefslogtreecommitdiff
path: root/include/std/types.h
blob: bbf31c560ad3ee902f287e2bf20a2fefde96ef39 (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
#ifndef AMALGAM_TYPES_H
#define AMALGAM_TYPES_H

#include <stddef.h>
#include <stdint.h>

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 ptrdiff_t isize;
typedef size_t usize;

typedef float f32;
typedef double f64;

typedef enum {
    bool_false,
    bool_true
} bool;

#ifndef NULL
#define NULL ((void*)0)
#endif

#endif