Files
bsb2/kernel/utils/alloc.cc
Niklas Gollenstede 174fe17e89 Handout
2025-10-31 22:37:36 +01:00

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");
}