Skip to content

Update new.cpp #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cores/arduino/new.cpp
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@ void * operator new[](std::size_t size) {
}

void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
(void)tag; // unused
#if defined(NEW_TERMINATES_ON_FAILURE)
// Cannot call throwing operator new as standard suggests, so call
// new_helper directly then
@@ -66,6 +67,7 @@ void * operator new(std::size_t size, const std::nothrow_t tag) noexcept {
#endif
}
void * operator new[](std::size_t size, const std::nothrow_t& tag) noexcept {
(void)tag; // unused
#if defined(NEW_TERMINATES_ON_FAILURE)
// Cannot call throwing operator new[] as standard suggests, so call
// malloc directly then
@@ -101,9 +103,11 @@ void operator delete[](void * ptr, std::size_t size) noexcept {
#endif // __cplusplus >= 201402L

void operator delete(void* ptr, const std::nothrow_t& tag) noexcept {
(void)tag; // unused
operator delete(ptr);
}
void operator delete[](void* ptr, const std::nothrow_t& tag) noexcept {
(void)tag; // unused
operator delete[](ptr);
}


Unchanged files with check annotations Beta

# Hey Emacs, this is a -*- makefile -*-

Check warning on line 1 in firmwares/atmegaxxu2/arduino-usbdfu/makefile

GitHub Actions / spellcheck

Cannot decode file using encoding "utf-8"
#----------------------------------------------------------------------------
# WinAVR Makefile Template written by Eric B. Weddington, Jörg Wunsch, et al.
# >> Modified for use with the LUFA project. <<
# Hey Emacs, this is a -*- makefile -*-

Check warning on line 1 in firmwares/atmegaxxu2/arduino-usbserial/makefile

GitHub Actions / spellcheck

Cannot decode file using encoding "utf-8"
#----------------------------------------------------------------------------
# WinAVR Makefile Template written by Eric B. Weddington, Jörg Wunsch, et al.
# >> Modified for use with the LUFA project. <<
/*++

Check warning on line 1 in drivers/FTDI USB Drivers/ftd2xx.h

GitHub Actions / spellcheck

Cannot decode file using encoding "utf-8"
Copyright © 2001-2021 Future Technology Devices International Limited
; FTDIBUS.INF

Check warning on line 1 in drivers/FTDI USB Drivers/ftdibus.inf

GitHub Actions / spellcheck

Cannot decode file using encoding "utf-8"
;
; Copyright © 2000-2021 Future Technology Devices International Limited
;
; FTDIPORT.INF

Check warning on line 1 in drivers/FTDI USB Drivers/ftdiport.inf

GitHub Actions / spellcheck

Cannot decode file using encoding "utf-8"
;
; Copyright © 2000-2021 Future Technology Devices International Limited
;