|
cbase 1.50.0
C/C++ Static Template
|
Core fixed-width type aliases and memory size constants. More...
#include <float.h>#include <stdbool.h>#include <stddef.h>#include <stdint.h>

Go to the source code of this file.
Macros | |
| #define | KB(x) |
| #define | MB(x) |
| #define | GB(x) |
| #define | TB(x) |
Typedefs | |
| typedef uint8_t | u8 |
| typedef uint16_t | u16 |
| typedef uint32_t | u32 |
| typedef uint64_t | u64 |
| typedef int8_t | s8 |
| typedef int16_t | s16 |
| typedef int32_t | s32 |
| typedef int64_t | s64 |
| typedef int8_t | i8 |
| typedef int16_t | i16 |
| typedef int32_t | i32 |
| typedef int64_t | i64 |
| typedef size_t | usize |
| typedef ptrdiff_t | isize |
| Signed size type pointer-width, matches ptrdiff_t. | |
| typedef uintptr_t | uptr |
| typedef intptr_t | iptr |
| typedef float | f32 |
| typedef double | f64 |
| typedef uint8_t | byte |
| typedef bool | b8 |
| typedef int32_t | b32 |
Core fixed-width type aliases and memory size constants.
Provides short, consistent type names across the entire codebase so that integer widths are always explicit. Replaces the verbose stdint.h names (uint32_t, int64_t, etc.) with concise aliases (u32, i64, etc.) that are faster to read and write without sacrificing precision.
Definition in file base_types.h.