Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.74 KB

api-misc.org

File metadata and controls

60 lines (45 loc) · 1.74 KB

Misc.

TYPESET macro

TYPESET macro defines a list of types.

These macros are used to declare/define various Generic Data Types, Traits, and Generic Macros in the library implementation.

TYPESET(ALL)
int, size_t, TYPESET(PRIMITIVE)
TYPESET(PRIMITIVE)
None, bool, char, String, TYPESET(STD_INT)
TYPESET(STD_INT)
int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, uint32_t, uint64_t

Primitive Types

None
a type that represents a value of nothing.
None type is mainly used instead of void as return type of some parsers that have no meaningful return value.
NONE
a value of None type.
isNONE(x)
macro that returns true if x was a None value.
bool
a boolean (true or false)
char
a 8-bit character
String
a string. - type alias to char* (i.e. typedef)
int
an integer.
  • NOTE : int is not a member of TYPESET(PRIMITIVE) nor TYPESET(STD_INT), since it may be a type alias to other standard integer type.
size_t
an unsigned integer, which is used to represent size of an object.
  • NOTE : size_t is not a member of TYPESET(PRIMITIVE) nor TYPESET(STD_INT), since it may be a type alias to other standard integer type.
int8_t
an 8-bit integer
int16_t
a 16-bit integer
int32_t
a 32-bit integer
int64_t
a 64-bit integer
uint8_t
an 8-bit unsigned integer
uint16_t
a 16-bit unsigned integer
uint32_t
a 32-bit unsigned integer
uint64_t
a 64-bit unsigned integer