|
@@ -37,8 +37,10 @@ JPH_EXPORT void RegisterDefaultAllocator();
|
|
|
JPH_INLINE void operator delete (void *inPointer, [[maybe_unused]] std::align_val_t inAlignment) noexcept { JPH::AlignedFree(inPointer); } \
|
|
|
JPH_INLINE void *operator new[] (size_t inCount, std::align_val_t inAlignment) { return JPH::AlignedAllocate(inCount, static_cast<size_t>(inAlignment)); } \
|
|
|
JPH_INLINE void operator delete[] (void *inPointer, [[maybe_unused]] std::align_val_t inAlignment) noexcept { JPH::AlignedFree(inPointer); } \
|
|
|
- JPH_INLINE void *operator new ([[maybe_unused]] size_t inSize, void *inPointer) noexcept { return inPointer; } \
|
|
|
- JPH_INLINE void *operator new[] ([[maybe_unused]] size_t inSize, void *inPointer) noexcept { return inPointer; }
|
|
|
+ JPH_INLINE void *operator new ([[maybe_unused]] size_t inCount, void *inPointer) noexcept { return inPointer; } \
|
|
|
+ JPH_INLINE void operator delete ([[maybe_unused]] void *inPointer, [[maybe_unused]] void *inPlace) noexcept { /* Do nothing */ } \
|
|
|
+ JPH_INLINE void *operator new[] ([[maybe_unused]] size_t inCount, void *inPointer) noexcept { return inPointer; } \
|
|
|
+ JPH_INLINE void operator delete[] ([[maybe_unused]] void *inPointer, [[maybe_unused]] void *inPlace) noexcept { /* Do nothing */ }
|
|
|
|
|
|
#else
|
|
|
|