include/Zycore/Types.h(3)
π include/Zycore/Types.h π
okay bestie, welcome to Zycore's little type buffet β¨ this is the include/Zycore/Types.h(3) page from the Library Functions Manual, and it's literally the file where all the default data types get defined so the rest of the codebase can stop arguing about what an int is π«Ά
πΈ NAME πΈ
include/Zycore/Types.h β the header that sets the whole squad's types straight π
β¨ SYNOPSIS β¨
#include <Zycore/Defines.h>
#include <stdint.h>
#include <stddef.h>
π Macros
#define ZYAN_INT8_MIN INT8_MIN
#define ZYAN_INT16_MIN INT16_MIN
#define ZYAN_INT32_MIN INT32_MIN
#define ZYAN_INT64_MIN INT64_MIN
#define ZYAN_INT8_MAX INT8_MAX
#define ZYAN_INT16_MAX INT16_MAX
#define ZYAN_INT32_MAX INT32_MAX
#define ZYAN_INT64_MAX INT64_MAX
#define ZYAN_UINT8_MAX UINT8_MAX
#define ZYAN_UINT16_MAX UINT16_MAX
#define ZYAN_UINT32_MAX UINT32_MAX
#define ZYAN_UINT64_MAX UINT64_MAX
#define ZYAN_NULL ((void*)0)
#define ZYAN_FALSE 0u
#define ZYAN_TRUE 1u
#define ZYAN_TERNARY_FALSE (-1)
#define ZYAN_TERNARY_UNKNOWN 0x00
#define ZYAN_TERNARY_TRUE 0x01
π¦ Typedefs
typedef uint8_t ZyanU8
typedef uint16_t ZyanU16
typedef uint32_t ZyanU32
typedef uint64_t ZyanU64
typedef int8_t ZyanI8
typedef int16_t ZyanI16
typedef int32_t ZyanI32
typedef int64_t ZyanI64
typedef size_t ZyanUSize
typedef ptrdiff_t ZyanISize
typedef uintptr_t ZyanUPointer
typedef intptr_t ZyanIPointer
typedef void * ZyanVoidPointer
typedef const void * ZyanConstVoidPointer
typedef ZyanU8 ZyanBool
typedef ZyanI8 ZyanTernary
typedef char * ZyanCharPointer
typedef const char * ZyanConstCharPointer
π Functions
ZYAN_STATIC_ASSERT (sizeof(ZyanU8)==1)
ZYAN_STATIC_ASSERT (sizeof(ZyanU16)==2)
ZYAN_STATIC_ASSERT (sizeof(ZyanU32)==4)
ZYAN_STATIC_ASSERT (sizeof(ZyanU64)==8)
ZYAN_STATIC_ASSERT (sizeof(ZyanI8)==1)
ZYAN_STATIC_ASSERT (sizeof(ZyanI16)==2)
ZYAN_STATIC_ASSERT (sizeof(ZyanI32)==4)
ZYAN_STATIC_ASSERT (sizeof(ZyanI64)==8)
ZYAN_STATIC_ASSERT (sizeof(ZyanUSize)==sizeof(void *))
ZYAN_STATIC_ASSERT (sizeof(ZyanISize)==sizeof(void *))
ZYAN_STATIC_ASSERT (sizeof(ZyanUPointer)==sizeof(void *))
ZYAN_STATIC_ASSERT (sizeof(ZyanIPointer)==sizeof(void *))
ZYAN_STATIC_ASSERT ((ZyanI8) -1 > > 1<(ZyanI8)((ZyanU8) -1 > > 1))
bestie these aren't even functions, they're compile-time vibe checks β if any of those sizes are wrong on your platform, the build just refuses to proceed. no cap. that's the whole point β fail loud at compile time instead of mysterious chaos at runtime π
π Detailed Description π
Includes and defines some default data types. that's it, that's the mission statement, and she executes it flawlessly π
π Typedef Documentation π
π typedef ZyanU8 ZyanBool
Defines the ZyanBool data-type.
Represents a default boolean data-type where 0 is interpreted as false and all other values as true. so likeβ¦ 1, 2, 47, -9000? all true. the audacity honestly π
π typedef char* ZyanCharPointer
Defines the ZyanCharPointer data-type.
This type is most often used to represent null-terminated strings aka. C-style strings. classic β¨
π¦ typedef const char* ZyanConstCharPointer
Defines the ZyanConstCharPointer data-type.
This type is most often used to represent null-terminated strings aka. C-style strings. same energy, but she's const so don't even think about touching her π«Ά
πΈ typedef const void* ZyanConstVoidPointer
Defines the ZyanConstVoidPointer data-type. no extra lore given, she simply is π
β typedef ZyanI8 ZyanTernary
Defines the ZyanTernary data-type.
The ZyanTernary is a balanced ternary type that uses three truth values indicating true, false and an indeterminate third value. not me living my whole life in the indeterminate third value π
π typedef void* ZyanVoidPointer
Defines the ZyanVoidPointer data-type. mysterious, untyped, iconic, periodt β¨
π Author π
Generated automatically by Doxygen for Zycore from the source code. so nobody hand-wrote this prose bestie, the robot did it and honestly? she ate π
and that's the whole page!! Zycore Version 1.5.2.0 π¦ go forth and typedef responsibly, angel π
π¦ where this page comes from
- ubuntu resolute: libzycore-doc 1.5.2-1build1 Β· MIT
- ubuntu stonking: libzycore-doc 1.5.2-1build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms