type API - Core type definitions and literals
The type API, which is defined in the type.h header file, defines core
data types and literal macros. It is central to all other APIs in the libkw
library.
Literals
#define FALSE 0- Represents boolean false.
#define NULL 0- Represents a null pointer. Equivalent to standard
NULL. #define TRUE 1- Represents boolean true.
Signed Integers
typedef int I16;- A signed 16-bit number.
typedef long I32;- A signed 32-bit number.
typedef long long I64;- A signed 64-bit number.
typedef char I8;- A signed 8-bit number.
Unsigned Integers
typedef void U0;- A 0-bit number (i.e., an absent number). Equivalent to standard
void. typedef unsigned int U16;- An unsigned 16-bit number.
typedef unsigned long U32;- An unsigned 32-bit number.
typedef unsigned long long U64;- An unsigned 64-bit number.
typedef unsigned char U8;- An unsigned 8-bit number.
Floating Point Numbers
typedef float F32;- A 32-bit floating-point number.
typedef double F64;- A 64-bit floating-point number.