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

Go to the source code of this file.

Macros

#define true   ((b32)1)
 
#define false   ((b32)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   ((b32)0)

Redefines false to be b32.

◆ null

#define null   NULL

Make NULL lower-case.

◆ true

#define true   ((b32)1)

Redefines true to be b32.

Typedef Documentation

◆ b32

typedef u32 b32

Make bool more platform efficient

◆ cstr

typedef char cstr

Make char more opaque.

◆ 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

Make unsigned char more opaque.