Luna/luna/PlacementNew.h

13 lines
284 B
C
Raw Normal View History

2022-11-13 11:20:53 +00:00
#pragma once
2022-11-23 16:22:16 +00:00
#include <Types.h>
2022-11-13 11:20:53 +00:00
2022-11-23 16:22:16 +00:00
inline void* operator new(usize, void* p) noexcept
2022-11-13 11:20:53 +00:00
{
return p;
}
2022-11-23 16:22:16 +00:00
inline void* operator new[](usize, void* p) noexcept
2022-11-13 11:20:53 +00:00
{
return p;
}
inline void operator delete(void*, void*) noexcept {};
inline void operator delete[](void*, void*) noexcept {};