WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
config_impl.hpp
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5// Copyright (C) 2015-2020 Jonathan Müller <jonathanmueller.dev@gmail.com>
6// This file is subject to the license terms in the LICENSE file
7// found in the top-level directory of this distribution.
8
9#pragma once
10
11#include <cstddef>
12
13//=== options ===//
14#define WPI_MEMORY_CHECK_ALLOCATION_SIZE 1
15#define WPI_MEMORY_IMPL_DEFAULT_ALLOCATOR heap_allocator
16#ifdef NDEBUG
17#define WPI_MEMORY_DEBUG_ASSERT 0
18#define WPI_MEMORY_DEBUG_FILL 0
19#define WPI_MEMORY_DEBUG_FENCE 0
20#define WPI_MEMORY_DEBUG_LEAK_CHECK 0
21#define WPI_MEMORY_DEBUG_POINTER_CHECK 0
22#define WPI_MEMORY_DEBUG_DOUBLE_DEALLOC_CHECK 0
23#else
24#define WPI_MEMORY_DEBUG_ASSERT 1
25#define WPI_MEMORY_DEBUG_FILL 1
26#define WPI_MEMORY_DEBUG_FENCE 8
27#define WPI_MEMORY_DEBUG_LEAK_CHECK 1
28#define WPI_MEMORY_DEBUG_POINTER_CHECK 1
29#define WPI_MEMORY_DEBUG_DOUBLE_DEALLOC_CHECK 1
30#endif
31#define WPI_MEMORY_EXTERN_TEMPLATE 1
32#define WPI_MEMORY_TEMPORARY_STACK_MODE 2
33
34#define WPI_MEMORY_NO_NODE_SIZE 1