KrkUpvalue Struct Reference
Storage for values referenced from nested functions. More...
#include <object.h>
Inheritance diagram for KrkUpvalue:
Public Member Functions | |
KrkUpvalue * | krk_newUpvalue (int slot) |
Create an upvalue slot. More... | |
Data Fields | |
int | location |
Stack offset or -1 if closed. | |
KrkValue | closed |
Heap storage for closed value. | |
struct KrkUpvalue * | next |
Invasive linked list pointer to next upvalue. | |
struct KrkThreadState * | owner |
The thread that owns the stack this upvalue belongs in. | |
Data Fields inherited from KrkObj | |
uint16_t | type |
Tag indicating core type. | |
uint16_t | flags |
General object flags, mostly related to garbage collection. | |
uint32_t | hash |
Cached hash value for table keys. | |
struct KrkObj * | next |
Invasive linked list of all objects in the VM. | |
Protected Attributes | |
KrkObj | obj |
Base. | |
Detailed Description
Member Function Documentation
◆ krk_newUpvalue()
KrkUpvalue * krk_newUpvalue | ( | int | slot | ) |
The documentation for this struct was generated from the following file:
- src/kuroko/object.h