Remove libcxx stub library and move operator new to mammoth.
This commit is contained in:
parent
a46694d0f7
commit
7989c9d616
12 changed files with 10 additions and 138 deletions
7
lib/mammoth/src/new.cpp
Normal file
7
lib/mammoth/src/new.cpp
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
[[nodiscard]] void* operator new(uint64_t size) { return malloc(size); }
|
||||
[[nodiscard]] void* operator new[](uint64_t size) { return malloc(size); }
|
||||
|
||||
void operator delete(void*, uint64_t) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue