1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 18:37:36 +00:00

Kernel: Declare operator new/delete noexcept for MAKE_ALIGNED_ALLOCATED

This commit is contained in:
Brian Gianforcaro 2021-05-12 03:46:52 -07:00 committed by Andreas Kling
parent 97adaaf933
commit 788075c58b

View file

@ -14,8 +14,8 @@
#define MAKE_ALIGNED_ALLOCATED(type, alignment) \ #define MAKE_ALIGNED_ALLOCATED(type, alignment) \
public: \ public: \
void* operator new(size_t) { return kmalloc_aligned<alignment>(sizeof(type)); } \ [[nodiscard]] void* operator new(size_t) noexcept { return kmalloc_aligned<alignment>(sizeof(type)); } \
void operator delete(void* ptr) { kfree_aligned(ptr); } \ void operator delete(void* ptr) noexcept { kfree_aligned(ptr); } \
\ \
private: private: