This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/util/memory/memory.h
falsycat 84c3a02b9a [RELEASE] u22-v03
This version is submitted to U22 breau.
2020-09-14 00:00:00 +00:00

30 lines
310 B
C

#pragma once
#include <stddef.h>
void*
memory_new(
size_t size
);
void*
memory_resize(
void* ptr,
size_t size
);
void
memory_delete(
void* ptr
);
#ifndef NDEBUG
void
memory_log(
const char* fmt,
...
);
#else
# define memory_log(fmt, ...) (void) fmt
#endif /* NDEBUG */