Skip to content

Commit

Permalink
Add missing delete operators
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed May 25, 2024
1 parent a28063f commit d6e723d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mos-platform/common/c/new.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ __attribute__((weak)) void operator delete[](void *ptr) noexcept {
operator delete(ptr);
}

__attribute__((weak)) void operator delete(void *ptr, std::size_t) noexcept {
operator delete(ptr);
}

__attribute__((weak)) void operator delete[](void *ptr, std::size_t) noexcept {
operator delete(ptr);
}

static std::new_handler current_new_handler = nullptr;

namespace std {
Expand Down

0 comments on commit d6e723d

Please sign in to comment.