mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:17:45 +00:00
Kernel: Declare operator new/delete noexcept for MAKE_ALIGNED_ALLOCATED
This commit is contained in:
parent
97adaaf933
commit
788075c58b
1 changed files with 5 additions and 5 deletions
|
@ -14,8 +14,8 @@
|
|||
|
||||
#define MAKE_ALIGNED_ALLOCATED(type, alignment) \
|
||||
public: \
|
||||
void* operator new(size_t) { return kmalloc_aligned<alignment>(sizeof(type)); } \
|
||||
void operator delete(void* ptr) { kfree_aligned(ptr); } \
|
||||
[[nodiscard]] void* operator new(size_t) noexcept { return kmalloc_aligned<alignment>(sizeof(type)); } \
|
||||
void operator delete(void* ptr) noexcept { kfree_aligned(ptr); } \
|
||||
\
|
||||
private:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue