Pigweed
C/C++ API Reference
Home
Modules
Loading...
Searching...
No Matches
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
17
18
#ifndef PW_ALLOCATOR_BLOCK_POISON_INTERVAL
30
#define PW_ALLOCATOR_BLOCK_POISON_INTERVAL 0
31
#endif
// PW_ALLOCATOR_BLOCK_POISON_INTERVAL
32
40
#define PW_ALLOCATOR_HARDENING_BASIC 1
41
53
#define PW_ALLOCATOR_HARDENING_ROBUST 2
54
67
#define PW_ALLOCATOR_HARDENING_DEBUG 3
68
81
#ifndef PW_ALLOCATOR_HARDENING
82
#define PW_ALLOCATOR_HARDENING PW_ALLOCATOR_HARDENING_ROBUST
83
#endif
// PW_ALLOCATOR_HARDENING
84
85
#ifndef PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
99
#define PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS 1
100
#endif
// PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
101
102
#if PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
103
#define PW_ALLOCATOR_DEPRECATED
104
#else
105
#define PW_ALLOCATOR_DEPRECATED \
106
[[deprecated("See b/376730645 for background and workarounds."
)]]
107
#endif
// PW_ALLOCATOR_SUPPRESS_DEPRECATED_WARNINGS
108
117
#ifndef PW_ALLOCATOR_HAS_ATOMICS
118
#define PW_ALLOCATOR_HAS_ATOMICS 1
119
#endif
// PW_ALLOCATOR_HAS_ATOMICS
120
pw_allocator
public
pw_allocator
config.h
Generated by
1.9.6