Rishka
RISC-V virtual runtime in C/C++ made for ESP32-WROVER
types.h File Reference

Header file for common data types used in Rishka applications. More...

Go to the source code of this file.

Macros

#define F(str)   ((char*) str)
 Macro to convert a string literal to a char pointer.
 
#define nil   ((void*) 0)
 Macro representing a null pointer.
 
#define false   0
 Macro representing the boolean value false.
 
#define true   1
 Macro representing the boolean value true.
 

Typedefs

typedef char rune
 Alias for the Unicode character type.
 
typedef char * string
 Alias for the string type.
 
typedef signed char i8
 Alias for the signed 8-bit integer type.
 
typedef signed short int i16
 Alias for the signed 16-bit integer type.
 
typedef signed int i32
 Alias for the signed 32-bit integer type.
 
typedef signed long int i64
 Alias for the signed 64-bit integer type.
 
typedef unsigned char u8
 Alias for the unsigned 8-bit integer type.
 
typedef unsigned short int u16
 Alias for the unsigned 16-bit integer type.
 
typedef unsigned int u32
 Alias for the unsigned 32-bit integer type.
 
typedef unsigned long int u64
 Alias for the unsigned 64-bit integer type.
 
typedef u32 usize
 Alias for the unsigned integer type representing size.
 
typedef void * any
 Alias for the generic pointer type.
 

Detailed Description

Header file for common data types used in Rishka applications.

Author
Nathanne Isip

This header file defines common Rust-inspired data types and macros used throughout Rishka applications, including typedefs for integer types, string type, and boolean values.