25#if defined(OS_USE_OS_APP_CONFIG_H)
26#include <cmsis-plus/os-app-config.h>
35#pragma clang diagnostic ignored "-Wc++98-compat"
83 new_handler prev_handler;
85 prev_handler = new_handler_;
86 new_handler_ = handler;
136void* __attribute__ ((weak))
operator new (std::size_t bytes)
153#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
197void* __attribute__ ((weak))
operator new (std::size_t bytes,
200 __attribute__ ((unused)))
noexcept
218#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
258void* __attribute__ ((weak))
operator new[] (std::size_t bytes)
260 return ::operator
new (bytes);
281void* __attribute__ ((weak))
operator new[] (std::size_t bytes,
284 __attribute__ ((unused)))
noexcept
315void __attribute__ ((weak))
operator delete (
void* ptr)
noexcept
317#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
334#pragma GCC diagnostic push
335#if defined(__clang__)
336#elif defined(__GNUC__)
337#pragma GCC diagnostic ignored "-Wc++14-compat"
338#pragma GCC diagnostic ignored "-Wredundant-decls"
342operator delete (
void* ptr, std::size_t bytes)
noexcept;
369void __attribute__ ((weak))
operator delete (
void* ptr,
370 std::size_t bytes)
noexcept
372#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
388#pragma GCC diagnostic pop
409void __attribute__ ((weak))
operator delete (
void* ptr,
const std::nothrow_t
411 __attribute__ ((unused)))
noexcept
413#if defined(OS_TRACE_LIBCPP_OPERATOR_NEW)
448void __attribute__ ((weak))
operator delete[] (
void* ptr)
noexcept
450 ::operator
delete (ptr);
453#pragma GCC diagnostic push
454#if defined(__clang__)
455#elif defined(__GNUC__)
456#pragma GCC diagnostic ignored "-Wc++14-compat"
457#pragma GCC diagnostic ignored "-Wredundant-decls"
461operator delete[] (
void* ptr, std::size_t bytes)
noexcept;
483void __attribute__ ((weak))
operator delete[] (
void* ptr,
484 std::size_t bytes)
noexcept
486 ::operator
delete (ptr, bytes);
489#pragma GCC diagnostic pop
513void __attribute__ ((weak))
operator delete[] (
void* ptr,
const std::nothrow_t
516 ::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.
memory_resource * get_default_resource(void) noexcept
Get the default application memory manager.
std::new_handler new_handler_
The current new handler.
void __throw_bad_alloc(void)
bool in_handler_mode(void)
Check if the CPU is in handler mode.
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.
Single file µOS++ RTOS definitions.