|
CX Framework
Cross-platform C utility framework
|
#include <stype.h>
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).