Luna/libluna/include/luna/PlacementNew.h

14 lines
290 B
C
Raw Normal View History

2022-11-13 11:20:53 +00:00
#pragma once
#include <luna/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 {};
2023-01-02 12:07:29 +00:00
inline void operator delete[](void*, void*) noexcept {};