htils
1
A small set of utilities for C programming.
Toggle main menu visibility
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
13
typedef
uint8_t
u8
;
14
16
typedef
uint16_t
u16
;
17
19
typedef
uint32_t
u32
;
20
22
typedef
uint64_t
u64
;
23
25
typedef
int8_t
i8
;
26
28
typedef
int16_t
i16
;
29
31
typedef
int32_t
i32
;
32
34
typedef
int64_t
i64
;
35
37
typedef
float
f32
;
38
40
typedef
double
f64
;
41
43
typedef
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
59
typedef
char
cstr
;
60
62
typedef
unsigned
char
ucstr
;
63
66
#ifdef USE_NULLABLE_TYPES
67
typedef
cstr
cstr_nullable;
68
typedef
ucstr
ucstr_nullable;
69
#endif
70
71
#endif
// !HTILS_BASICTYPES_H
u64
uint64_t u64
Definition
basictypes.h:22
i32
int32_t i32
Definition
basictypes.h:31
f32
float f32
Definition
basictypes.h:37
b32
u32 b32
Definition
basictypes.h:43
i64
int64_t i64
Definition
basictypes.h:34
u8
uint8_t u8
Definition
basictypes.h:13
f64
double f64
Definition
basictypes.h:40
ucstr
unsigned char ucstr
Definition
basictypes.h:62
u16
uint16_t u16
Definition
basictypes.h:16
cstr
char cstr
Definition
basictypes.h:59
i16
int16_t i16
Definition
basictypes.h:28
i8
int8_t i8
Definition
basictypes.h:25
u32
uint32_t u32
Definition
basictypes.h:19
include
htils
basictypes.h
Generated by
1.17.0