hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
weak.h
Go to the documentation of this file.
1//
2// Created by XIaokang00010 on 2026/7/20.
3//
4
5#ifndef HOSHI_LANG_WEAK_H
6#define HOSHI_LANG_WEAK_H
7
8#include <cstdint>
9
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19 WeakSlot *runtime_weak_slot_alloc(void *target, WeakSlot **weak_slots_head_ptr);
20 void runtime_weak_slot_free(WeakSlot *slot, WeakSlot **weak_slots_head_ptr);
21 void runtime_weak_slot_nullify_all(WeakSlot **weak_slots_head_ptr);
22
23#ifdef __cplusplus
24}
25#endif
26
27#endif //HOSHI_LANG_WEAK_H
void * target
Definition weak.h:11
WeakSlot * next_in_target
Definition weak.h:12
WeakSlot * runtime_weak_slot_alloc(void *target, WeakSlot **weak_slots_head_ptr)
Definition weak.cpp:8
void runtime_weak_slot_nullify_all(WeakSlot **weak_slots_head_ptr)
Definition weak.cpp:30
void runtime_weak_slot_free(WeakSlot *slot, WeakSlot **weak_slots_head_ptr)
Definition weak.cpp:17