Fast DDS  Version 3.0.1
Fast DDS
Loading...
Searching...
No Matches
Colors.hpp
1// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://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,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
19#ifndef FASTDDS_DDS_LOG__COLORS_HPP
20#define FASTDDS_DDS_LOG__COLORS_HPP
21
22
23#if defined(_WIN32)
24 #define C_DEF ""
25 #define C_RED ""
26 #define C_B_RED ""
27 #define C_GREEN ""
28 #define C_B_GREEN ""
29 #define C_YELLOW ""
30 #define C_B_YELLOW ""
31 #define C_BLUE ""
32 #define C_B_BLUE ""
33 #define C_MAGENTA ""
34 #define C_B_MAGENTA ""
35 #define C_CYAN ""
36 #define C_B_CYAN ""
37 #define C_WHITE ""
38 #define C_B_WHITE ""
39 #define C_BRIGHT ""
40#else
41 #define C_DEF "\033[m"
42 #define C_RED "\033[31m"
43 #define C_B_RED "\033[31;1m"
44 #define C_GREEN "\033[32m"
45 #define C_B_GREEN "\033[32;1m"
46 #define C_YELLOW "\033[33m"
47 #define C_B_YELLOW "\033[33;1m"
48 #define C_BLUE "\033[34m"
49 #define C_B_BLUE "\033[34;1m"
50 #define C_MAGENTA "\033[35m"
51 #define C_B_MAGENTA "\033[35;1m"
52 #define C_CYAN "\033[36m"
53 #define C_B_CYAN "\033[36;1m"
54 #define C_WHITE "\033[37m"
55 #define C_B_WHITE "\033[37;1m"
56 #define C_BRIGHT "\033[1m"
57#endif // if defined(_WIN32)
58
59
60#endif // FASTDDS_DDS_LOG__COLORS_HPP