htils 1
A small set of utilities for C programming.
Loading...
Searching...
No Matches
basictypes.h
Go to the documentation of this file.
1#ifndef HTILS_BASICTYPES_H
2#define HTILS_BASICTYPES_H
3
4/***********************************/
5
6#include <stdatomic.h>
7#include <stddef.h>
8#include <stdint.h>
9
10/***********************************/
11
13typedef uint8_t u8;
14
16typedef uint16_t u16;
17
19typedef uint32_t u32;
20
22typedef uint64_t u64;
23
25typedef int8_t i8;
26
28typedef int16_t i16;
29
31typedef int32_t i32;
32
34typedef int64_t i64;
35
37typedef float f32;
38
40typedef double f64;
41
43typedef u32 b32;
44
46#ifndef true
47#define true (1)
48#endif
49
51#ifndef false
52#define false (0)
53#endif
54
56#define null NULL
57
59typedef char cstr;
60
62typedef unsigned char ucstr;
63
66#ifdef USE_NULLABLE_TYPES
67typedef cstr cstr_nullable;
68typedef ucstr ucstr_nullable;
69#endif
70
71#endif // !HTILS_BASICTYPES_H
uint64_t u64
Definition basictypes.h:22
int32_t i32
Definition basictypes.h:31
float f32
Definition basictypes.h:37
u32 b32
Definition basictypes.h:43
int64_t i64
Definition basictypes.h:34
uint8_t u8
Definition basictypes.h:13
double f64
Definition basictypes.h:40
unsigned char ucstr
Definition basictypes.h:62
uint16_t u16
Definition basictypes.h:16
char cstr
Definition basictypes.h:59
int16_t i16
Definition basictypes.h:28
int8_t i8
Definition basictypes.h:25
uint32_t u32
Definition basictypes.h:19