16 lines
388 B
C++
16 lines
388 B
C++
#include "./alloc.h"
|
|
|
|
#include "../debug/assert.h"
|
|
|
|
void *malloc([[maybe_unused]] size_t size) {
|
|
assert(!"Memory allocation not supported");
|
|
return nullptr;
|
|
}
|
|
void *calloc([[maybe_unused]] size_t nmemb, [[maybe_unused]] size_t size) {
|
|
assert(!"Memory allocation not supported");
|
|
return nullptr;
|
|
}
|
|
void free([[maybe_unused]] void *ptr) {
|
|
assert(!"Memory allocation not supported");
|
|
}
|