47#pragma clang diagnostic ignored "-Wc++98-compat"
101 new_handler prev_handler;
103 prev_handler = new_handler_;
104 new_handler_ = handler;
154operator new (
std::
size_t bytes)
171#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
216operator new (std::size_t bytes,
217 const std::nothrow_t&
nothrow __attribute__((unused)))
noexcept
235#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
275operator new[] (std::size_t bytes)
277 return ::operator
new (bytes);
298operator new[] (std::size_t bytes,
299 const std::nothrow_t&
nothrow __attribute__((unused)))
noexcept
331operator delete (
void* ptr)
noexcept
333#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
350#pragma GCC diagnostic push
351#pragma GCC diagnostic ignored "-Wc++14-compat"
354operator delete (
void* ptr, std::size_t bytes)
noexcept;
382operator delete (
void* ptr, std::size_t bytes)
noexcept
384#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
400#pragma GCC diagnostic pop
422operator delete (
void* ptr,
423 const std::nothrow_t&
nothrow __attribute__((unused)))
noexcept
425#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
461operator delete[] (
void* ptr)
noexcept
463 ::operator
delete (ptr);
466#pragma GCC diagnostic push
467#pragma GCC diagnostic ignored "-Wc++14-compat"
470operator delete[] (
void* ptr, std::size_t bytes)
noexcept;
493operator delete[] (
void* ptr, std::size_t bytes)
noexcept
495 ::operator
delete (ptr, bytes);
498#pragma GCC diagnostic pop
523operator delete[] (
void* ptr,
const std::nothrow_t&
nothrow)
noexcept
525 ::operator
delete (ptr,
nothrow);
void deallocate(void *addr, std::size_t bytes, std::size_t alignment=max_align) noexcept
Deallocate the previously allocated memory block.
void * allocate(std::size_t bytes, std::size_t alignment=max_align)
Allocate a memory block.
Scheduler critical section RAII helper.
int printf(const char *format,...)
Write a formatted string to the trace device.
std::new_handler new_handler_
The current new handler.
new_handler get_new_handler() noexcept
Get the current handler.
new_handler set_new_handler(new_handler handler) noexcept
Establishes the function designated by handler as the current new_handler.
memory_resource * get_default_resource(void) noexcept
Get the default application memory manager.
void __throw_bad_alloc(void)
bool in_handler_mode(void)
Check if the CPU is in handler mode.
Single file µOS++ RTOS definitions.