scudo_flags.h 805 B

1234567891011121314151617181920212223242526272829303132
  1. //===-- scudo_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. /// Header for scudo_flags.cpp.
  10. ///
  11. //===----------------------------------------------------------------------===//
  12. #ifndef SCUDO_FLAGS_H_
  13. #define SCUDO_FLAGS_H_
  14. namespace __scudo {
  15. struct Flags {
  16. #define SCUDO_FLAG(Type, Name, DefaultValue, Description) Type Name;
  17. #include "scudo_flags.inc"
  18. #undef SCUDO_FLAG
  19. void setDefaults();
  20. };
  21. Flags *getFlags();
  22. void initFlags();
  23. } // namespace __scudo
  24. #endif // SCUDO_FLAGS_H_