]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/scudo/standalone/flags.h
Merge compiler-rt trunk r366426, resolve conflicts, and add
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / scudo / standalone / flags.h
1 //===-- flags.h -------------------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8
9 #ifndef SCUDO_FLAGS_H_
10 #define SCUDO_FLAGS_H_
11
12 #include "internal_defs.h"
13
14 namespace scudo {
15
16 struct Flags {
17 #define SCUDO_FLAG(Type, Name, DefaultValue, Description) Type Name;
18 #include "flags.inc"
19 #undef SCUDO_FLAG
20   void setDefaults();
21 };
22
23 Flags *getFlags();
24 void initFlags();
25 class FlagParser;
26 void registerFlags(FlagParser *Parser, Flags *F);
27
28 } // namespace scudo
29
30 #endif // SCUDO_FLAGS_H_