Handout
This commit is contained in:
15
kernel/utils/alloc.cc
Normal file
15
kernel/utils/alloc.cc
Normal file
@@ -0,0 +1,15 @@
|
||||
#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");
|
||||
}
|
||||
Reference in New Issue
Block a user