7#if !defined(SKIP_INCLUDES)
22 (
void*)
NS(
NS(
ALLOC, ref), deref)(alloc_ref));
26 .alloc_ref = alloc_ref,
33 fprintf(self->stream,
"[%s] %s(size=%zu) -> %p\n", self->name, __func__,
size, ptr);
40 fprintf(self->stream,
"[%s] %s(size=%zu) -> %p\n", self->name, __func__,
size, ptr);
48 fprintf(self->stream,
"[%s] %s(ptr=%p, old_size=%zu, new_size=%zu) -> %p\n", self->name,
49 __func__, ptr, old_size, new_size, new_ptr);
55 fprintf(self->stream,
"[%s] %s(ptr=%p, size=%zu)\n", self->name, __func__, ptr,
size);
72 fprintf(self->stream,
"[%s]: %s\n", self->name, __func__);
static DC_PUBLIC void deallocate(SELF *self, void *ptr, size_t size)
static DC_PUBLIC void debug(SELF const *self, dc_debug_fmt fmt, FILE *stream)
static DC_PUBLIC void * allocate_zeroed(SELF *self, size_t size)
static DC_PUBLIC void * allocate_uninit(SELF *self, size_t size)
static DC_PUBLIC void * reallocate(SELF *self, void *ptr, size_t old_size, size_t new_size)
#define DC_TRAIT_ALLOC(SELF)
static DC_PUBLIC size_t size(SELF const *self)
static DC_PUBLIC void dc_debug_fmt_print(dc_debug_fmt fmt, FILE *stream, const char *format,...)
static DC_PUBLIC dc_debug_fmt dc_debug_fmt_scope_end(dc_debug_fmt fmt)
static DC_PUBLIC dc_debug_fmt dc_debug_fmt_scope_begin(dc_debug_fmt fmt)
#define DC_EXPAND_STRING(NAME)
#define DC_ASSUME(expr,...)
#define DC_TRAIT_REFERENCABLE_BY_PTR(SELF)
Debug format helpers for debug printin data structures.
static DC_PUBLIC FILE * stream(SELF *self)