Program Listing for File memory.h
↰ Return to documentation for file (api/include/pntos/memory.h)
#pragma once
#include <pntos/annotations.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
PNTOS_ASSUME_NONNULL_BEGIN
typedef struct PntosManagedMemory {
void (*inc_ref)(void* ref_counted_struct);
void (*dec_ref)(void* ref_counted_struct);
size_t (*num_refs)(void* ref_counted_struct);
} PntosManagedMemory;
#ifdef __cplusplus
}
#endif
PNTOS_ASSUME_NONNULL_END