htils 1
A small set of utilities for C programming.
Loading...
Searching...
No Matches
basictypes.h File Reference
#include <stdatomic.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define true   (1)
#define false   (0)
#define null   NULL

Typedefs

typedef uint8_t u8
typedef uint16_t u16
typedef uint32_t u32
typedef uint64_t u64
typedef int8_t i8
typedef int16_t i16
typedef int32_t i32
typedef int64_t i64
typedef float f32
typedef double f64
typedef u32 b32
typedef char cstr
typedef unsigned char ucstr

Macro Definition Documentation

◆ false

#define false   (0)

Defines false as 0.

◆ null

#define null   NULL

Make NULL lower-case.

◆ true

#define true   (1)

Defines true as 1.

Typedef Documentation

◆ b32

typedef u32 b32

Boolean, stored as a 32-bit int (cheaper to pass/return than _Bool).

◆ cstr

typedef char cstr

Character; htils' char alias.

◆ f32

typedef float f32

Alias of float for better naming conventions.

◆ f64

typedef double f64

Alias of double for better naming conventions.

◆ i16

typedef int16_t i16

Alias of int16_t for better naming conventions.

◆ i32

typedef int32_t i32

Alias of int32_t for better naming conventions.

◆ i64

typedef int64_t i64

Alias of int64_t for better naming conventions.

◆ i8

typedef int8_t i8

Alias of int8_t for better naming conventions.

◆ u16

typedef uint16_t u16

Alias of uint16_t for better naming conventions.

◆ u32

typedef uint32_t u32

Alias of uint32_t for better naming conventions.

◆ u64

typedef uint64_t u64

Alias of uint64_t for better naming conventions.

◆ u8

typedef uint8_t u8

Alias of uint8_t for better naming conventions.

◆ ucstr

typedef unsigned char ucstr

Unsigned character; htils' unsigned char alias.