include/Zycore/Types.h(3)

πŸ“¦
version 1.5.2 Β· 2 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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