CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
STypeInfo Struct Reference

#include <stype.h>

Data Fields

uint32 id
 hierarchical type ID: STCLASS | STST_subtype | discriminant
 
uint16 size
 storage size in bytes
 
uint16 flags
 STypeFlag_Object, STypeFlag_PassPtr, STypeFlag_Temporary.
 
STypeOps ops
 operations embedded directly - no separate allocation
 

Detailed Description

Type descriptor for all runtime types in the stype system.

Each type has exactly one canonical const STypeInfo in static storage. stype is const STypeInfo* - two type values are equal if and only if they point to the same canonical descriptor (use stEq() to compare, which handles Temporary canonicalization).

Built-in type descriptors are declared as extern const STypeInfo _sti_name and accessed via stType(name) / stTypeInfo(name). Custom types are defined at file scope with stDefine(name) { ... } and declared in headers with stDeclare(name).

Definition at line 1409 of file stype.h.


The documentation for this struct was generated from the following file: