sgs_RegSymbol [function]
void sgs_RegSymbol( sgs_Context* C, const char* prefix, const char* name, sgs_Variable var )
Register a persistent item (symbol) by the specified prefix/name.
- Symbols are used for serialization to map unserializable and persistent items in both ways, to preserve their linkage in the serialized data.
- At least one of (
prefix
, name
) must be set to a non-empty string. If both are set, they are concatenated in the given order.
- This function is equivalent to sym_register in the SGScript API.