hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
weak.h File Reference
#include <cstdint>
Include dependency graph for weak.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WeakSlot
 

Functions

WeakSlotruntime_weak_slot_alloc (void *target, WeakSlot **weak_slots_head_ptr)
 
void runtime_weak_slot_free (WeakSlot *slot, WeakSlot **weak_slots_head_ptr)
 
void runtime_weak_slot_nullify_all (WeakSlot **weak_slots_head_ptr)
 

Function Documentation

◆ runtime_weak_slot_alloc()

WeakSlot * runtime_weak_slot_alloc ( void *  target,
WeakSlot **  weak_slots_head_ptr 
)

Definition at line 8 of file weak.cpp.

References WeakSlot::target.

◆ runtime_weak_slot_free()

void runtime_weak_slot_free ( WeakSlot slot,
WeakSlot **  weak_slots_head_ptr 
)

Definition at line 17 of file weak.cpp.

References WeakSlot::next_in_target.

◆ runtime_weak_slot_nullify_all()

void runtime_weak_slot_nullify_all ( WeakSlot **  weak_slots_head_ptr)

Definition at line 30 of file weak.cpp.

References WeakSlot::target.

Referenced by YoiIntAndIntObject::gc_refcount_decrease().

Here is the caller graph for this function: