Pigweed
C/C++ API Reference
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
pw_allocator
public
pw_allocator
config.h
1
// Copyright 2024 The Pigweed Authors
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
4
// use this file except in compliance with the License. You may obtain a copy of
5
// the License at
6
//
7
// https://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
// License for the specific language governing permissions and limitations under
13
// the License.
14
#pragma once
15
16
#ifndef PW_ALLOCATOR_BLOCK_POISON_INTERVAL
28
#define PW_ALLOCATOR_BLOCK_POISON_INTERVAL 0
29
#endif
// PW_ALLOCATOR_BLOCK_POISON_INTERVAL
30
38
#define PW_ALLOCATOR_HARDENING_BASIC 1
39
51
#define PW_ALLOCATOR_HARDENING_ROBUST 2
52
65
#define PW_ALLOCATOR_HARDENING_DEBUG 3
66
79
#ifndef PW_ALLOCATOR_HARDENING
80
#define PW_ALLOCATOR_HARDENING PW_ALLOCATOR_HARDENING_ROBUST
81
#endif
// PW_ALLOCATOR_HARDENING
82
83
#ifndef PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
97
#define PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS 1
98
#endif
// PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
99
100
#if PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
101
#define PW_ALLOCATOR_DEPRECATED
102
#else
103
#define PW_ALLOCATOR_DEPRECATED \
104
[[deprecated("See b/376730645 for background and workarounds."
)]]
105
#endif
// PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
106
115
#ifndef PW_ALLOCATOR_HAS_ATOMICS
116
#define PW_ALLOCATOR_HAS_ATOMICS 1
117
#endif
// PW_ALLOCATOR_HAS_ATOMICS
Generated by
1.9.6