21 lines
372 B
C
21 lines
372 B
C
#pragma once
|
|
|
|
#include "log.h"
|
|
#include <stddef.h>
|
|
#include <stdlib.h>
|
|
|
|
_UNUSED
|
|
void xfree(void* ptr)
|
|
_HOT;
|
|
|
|
_UNUSED _MALLOC __attribute__((alloc_size(1, 2)))
|
|
void* xcalloc(size_t count, size_t size)
|
|
_HOT;
|
|
|
|
_UNUSED _MALLOC __attribute__((alloc_size(1)))
|
|
void* xmalloc(size_t size)
|
|
_HOT;
|
|
|
|
_UNUSED __attribute__((alloc_size(2)))
|
|
void* xrealloc(void* ptr, size_t size)
|
|
_HOT;
|