WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
config.hpp File Reference

Configuration macros. More...

#include <cstddef>
#include <cstdlib>

Go to the source code of this file.

Macros

#define WPI_HAS_EXCEPTION_SUPPORT   1
 
#define WPI_THROW(Ex)
 
#define WPI_HOSTED_IMPLEMENTATION   0
 
#define WPI_MEMORY_LOG_PREFIX   "wpi::memory"
 
#define WPI_MEMORY_VERSION    (WPI_MEMORY_VERSION_MAJOR * 100 + WPI_MEMORY_VERSION_MINOR)
 The total version number of the form Mmm.
 
#define WPI_ALIAS_TEMPLATE(Name, ...)
 
#define WPI_MEMORY_VERSION_MAJOR   1
 The major version number.
 
#define WPI_MEMORY_VERSION_MINOR   1
 The minor version number.
 
#define WPI_MEMORY_VERSION    (WPI_MEMORY_VERSION_MAJOR * 100 + WPI_MEMORY_VERSION_MINOR)
 The total version number of the form Mmm.
 
#define WPI_MEMORY_CHECK_ALLOCATION_SIZE   1
 Whether or not the allocation size will be checked, i.e.
 
#define WPI_MEMORY_DEBUG_ASSERT   1
 Whether or not internal assertions in the library are enabled.
 
#define WPI_MEMORY_DEBUG_FILL   1
 Whether or not allocated memory will be filled with special values.
 
#define WPI_MEMORY_DEBUG_FENCE   1
 The size of the fence memory, it has no effect if WPI_MEMORY_DEBUG_FILL is false.
 
#define WPI_MEMORY_DEBUG_LEAK_CHECK   1
 Whether or not leak checking is enabled.
 
#define WPI_MEMORY_DEBUG_POINTER_CHECK   1
 Whether or not the deallocation functions will check for pointers that were never allocated by an allocator.
 
#define WPI_MEMORY_DEBUG_DOUBLE_DEALLOC_CHECK   1
 Whether or not the deallocation functions will check for double free errors.
 
#define WPI_MEMORY_NAMESPACE_PREFIX   1
 Whether or not everything is in namespace wpi::memory.
 
#define WPI_MEMORY_TEMPORARY_STACK_MODE   2
 The mode of the automatic wpi::memory::temporary_stack creation.
 

Detailed Description

Configuration macros.

Macro Definition Documentation

◆ WPI_ALIAS_TEMPLATE

#define WPI_ALIAS_TEMPLATE ( Name,
... )
Value:
class Name : public __VA_ARGS__ \
{ \
}

◆ WPI_HAS_EXCEPTION_SUPPORT

#define WPI_HAS_EXCEPTION_SUPPORT   1

◆ WPI_HOSTED_IMPLEMENTATION

#define WPI_HOSTED_IMPLEMENTATION   0

◆ WPI_MEMORY_LOG_PREFIX

#define WPI_MEMORY_LOG_PREFIX   "wpi::memory"

◆ WPI_THROW

#define WPI_THROW ( Ex)
Value:
((Ex), std::abort())