WPILibC++ 2025.1.1
|
Debugging facilities. More...
Go to the source code of this file.
Namespaces | |
namespace | wpi |
Foonathan namespace. | |
namespace | wpi::memory |
Memory namespace. | |
Typedefs | |
using | wpi::memory::leak_handler = void (*)(const allocator_info& info, std::ptrdiff_t amount) |
The type of the handler called when a memory leak is detected. | |
using | wpi::memory::invalid_pointer_handler = void (*)(const allocator_info& info, const void* ptr) |
The type of the handler called when an invalid pointer is passed to a deallocation function. | |
using | wpi::memory::buffer_overflow_handler |
The type of the handler called when a buffer under/overflow is detected. | |
Enumerations | |
enum class | wpi::memory::debug_magic : unsigned char { wpi::memory::debug_magic::internal_memory = 0xAB , wpi::memory::debug_magic::internal_freed_memory = 0xFB , wpi::memory::debug_magic::new_memory = 0xCD , wpi::memory::debug_magic::freed_memory = 0xDD , wpi::memory::debug_magic::alignment_memory = 0xED , wpi::memory::debug_magic::fence_memory = 0xFD } |
The magic values that are used for debug filling. More... | |
Functions | |
leak_handler | wpi::memory::set_leak_handler (leak_handler h) |
Exchanges the leak_handler. | |
leak_handler | wpi::memory::get_leak_handler () |
Returns the leak_handler. | |
invalid_pointer_handler | wpi::memory::set_invalid_pointer_handler (invalid_pointer_handler h) |
Exchanges the invalid_pointer_handler. | |
invalid_pointer_handler | wpi::memory::get_invalid_pointer_handler () |
Returns the invalid_pointer_handler. | |
buffer_overflow_handler | wpi::memory::set_buffer_overflow_handler (buffer_overflow_handler h) |
Exchanges the buffer_overflow_handler. | |
buffer_overflow_handler | wpi::memory::get_buffer_overflow_handler () |
Returns the buffer_overflow_handler. | |
bool | wpi::is_debugger_present () noexcept |
void | wpi::breakpoint () noexcept |
void | wpi::breakpoint_if_debugging () noexcept |
Debugging facilities.