26#if defined(OS_USE_OS_APP_CONFIG_H)
27#include <cmsis-plus/os-app-config.h>
36#pragma clang diagnostic ignored "-Wc++98-compat"
90 new_handler prev_handler;
92 prev_handler = new_handler_;
93 new_handler_ = handler;
143operator new (
std::
size_t bytes)
160#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
205operator new (std::size_t bytes,
206 const std::nothrow_t&
nothrow __attribute__((unused)))
noexcept
224#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
264operator new[] (std::size_t bytes)
266 return ::operator
new (bytes);
287operator new[] (std::size_t bytes,
288 const std::nothrow_t&
nothrow __attribute__((unused)))
noexcept
320operator delete (
void* ptr)
noexcept
322#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
339#pragma GCC diagnostic push
340#if defined(__clang__)
341#elif defined(__GNUC__)
342#pragma GCC diagnostic ignored "-Wc++14-compat"
343#pragma GCC diagnostic ignored "-Wredundant-decls"
347operator delete (
void* ptr, std::size_t bytes)
noexcept;
375operator delete (
void* ptr, std::size_t bytes)
noexcept
377#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
393#pragma GCC diagnostic pop
415operator delete (
void* ptr,
416 const std::nothrow_t&
nothrow __attribute__((unused)))
noexcept
418#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
454operator delete[] (
void* ptr)
noexcept
456 ::operator
delete (ptr);
459#pragma GCC diagnostic push
460#if defined(__clang__)
461#elif defined(__GNUC__)
462#pragma GCC diagnostic ignored "-Wc++14-compat"
463#pragma GCC diagnostic ignored "-Wredundant-decls"
467operator delete[] (
void* ptr, std::size_t bytes)
noexcept;
490operator delete[] (
void* ptr, std::size_t bytes)
noexcept
492 ::operator
delete (ptr, bytes);
495#pragma GCC diagnostic pop
520operator delete[] (
void* ptr,
const std::nothrow_t&
nothrow)
noexcept
522 ::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.