WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
debug_helpers.hpp File Reference
#include <atomic>
#include <type_traits>
#include "../config.hpp"

Go to the source code of this file.

Classes

class  wpi::memory::detail::no_leak_checker< Handler >
 
class  wpi::memory::detail::object_leak_checker< Handler >
 
class  wpi::memory::detail::global_leak_checker_impl< Handler >
 
struct  wpi::memory::detail::global_leak_checker_impl< Handler >::counter
 

Namespaces

namespace  wpi
 Foonathan namespace.
 
namespace  wpi::memory
 Memory namespace.
 
namespace  wpi::memory::detail
 

Macros

#define WPI_MEMORY_GLOBAL_LEAK_CHECKER(handler, var_name)
 

Typedefs

using wpi::memory::detail::debug_fill_enabled = std::integral_constant<bool, WPI_MEMORY_DEBUG_FILL>
 
template<class Handler >
using wpi::memory::detail::global_leak_checker = no_leak_checker<int>
 
template<class Handler >
using wpi::memory::detail::default_leak_checker = no_leak_checker<Handler>
 

Functions

void wpi::memory::detail::debug_fill (void *, std::size_t, debug_magic) noexcept
 
void * wpi::memory::detail::debug_is_filled (void *, std::size_t, debug_magic) noexcept
 
void * wpi::memory::detail::debug_fill_new (void *memory, std::size_t, std::size_t) noexcept
 
void * wpi::memory::detail::debug_fill_free (void *memory, std::size_t, std::size_t) noexcept
 
void wpi::memory::detail::debug_fill_internal (void *, std::size_t, bool) noexcept
 
void wpi::memory::detail::debug_handle_invalid_ptr (const allocator_info &info, void *ptr)
 
template<class Functor >
void wpi::memory::detail::debug_check_pointer (Functor condition, const allocator_info &info, void *ptr)
 
template<class Functor >
void wpi::memory::detail::debug_check_double_dealloc (Functor condition, const allocator_info &info, void *ptr)
 
void wpi::memory::detail::debug_handle_memory_leak (const allocator_info &info, std::ptrdiff_t amount)
 

Variables

constexpr std::size_t wpi::memory::detail::debug_fence_size
 

Macro Definition Documentation

◆ WPI_MEMORY_GLOBAL_LEAK_CHECKER

#define WPI_MEMORY_GLOBAL_LEAK_CHECKER ( handler,
var_name )