/* * Debug.h -- OMP debug */ //===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include <iostream> #include <ostream> #ifndef GDB_DEBUG_H_ #define GDB_DEBUG_H_ namespace GdbColor { enum Code { … }; inline std::ostream &operator<<(std::ostream &os, Code code) { … } } // namespace GdbColor class ColorOut { … }; static ColorOut dout(std::cout, GdbColor::FG_RED); static ColorOut sout(std::cout, GdbColor::FG_GREEN); static ColorOut hout(std::cout, GdbColor::FG_BLUE); #endif /*GDB_DEBUG_H_*/