Implementation for TracingHeap-Requirements for Objects

This commit is contained in:
vegowotenks 2025-01-12 21:33:43 +01:00
parent d7bfe97210
commit 43f0ed0250
5 changed files with 143 additions and 5 deletions

View file

@ -21,6 +21,7 @@
#define FLUP_OBJECT_H
#include "object-type.h"
#include "../submodules/utilitiec/src/TracingHeap/TracingHeap.h"
struct Object_s {
struct Object_s* next; // linked list of all objects
@ -30,4 +31,9 @@ struct Object_s {
size_t Object_AllocationSizeForType(ObjectType* otype);
// No-op
int Object_Destroy(void* arg, Object* o);
size_t Object_SizeQuery(void* arg, Object* o);
int Object_ReferenceTrace(void* context, Object* data, TracingHeapVisit trace_callback, void* callback_context);
#endif