This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
tcpaste/include/xmem.h
Thorsten Schubert 64c89e9274
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build encountered an error
Bug fixes
2021-11-08 18:39:10 +01:00

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;