std::pyro
A utility module for interacting with the Pyro VM.
Constants
-
version_string: str -
The language version as a string.
-
version_tuple: tup[i64, i64, i64, str, str] -
The language version as a tuple containing
(MAJOR, MINIOR, PATCH, LABEL, BUILD)elements.-
MAJOR,MINOR, andPATCHare semantic versioning integers. -
LABELis a string containing a pre-release label, e.g."alpha1","beta2","rc3". May be an empty string. -
BUILDis a string containing build information, e.g."release","debug". May be an empty string.
-
Functions
-
address(arg: any) -> str|err -
Returns the memory address of
argas an uppercase hex-encoded string prefixed with0x, e.g.0x600002FBE5B0.Returns an
errifargis not a heap-allocated object. -
gc() -
Runs the garbage collector.
-
memory() -> i64 -
Returns the VM's current memory allocation in bytes.