fix(kcp): Various kcp fixes
This commit is contained in:
1 parent
a8f0bb4454
commit
6c5f6ecd47
2 files changed
+6
-9
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Alloc.cpp
|
||||
* C++ new/delete operator
|
||||
* Copyright (c) 2025 Daniel Hammer
|
||||
*/
|
||||
|
||||
#include <cstddef>
|
||||
#include <Memory/Heap.hpp>
|
||||
|
||||
void* operator new(std::size_t size)
|
||||
{
|
||||
return Memory::g_allocator->Request(size);
|
||||
}
|
||||
|
||||
void operator delete(void* block)
|
||||
{
|
||||
Memory::g_allocator->Free(block);
|
||||
}
|
||||
Reference in new issue
Block a user