SimAVR
AVR Simulator
logging.h
Go to the documentation of this file.
1 /*
2  * sim_core.h
3  *
4  * Copyright 2008, 2009 Michel Pollet <buserror@gmail.com>
5  *
6  * This file is part of simavr.
7  *
8  * simavr is free software: you can redistribute it and/or modify it under the terms of the GNU
9  * General Public License as published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * simavr is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
14  * Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along with simavr. If not, see
17  * <http://www.gnu.org/licenses/>.
18  */
19 
25 #ifndef __LOGGING_H__
26 #define __LOGGING_H__
27 
28 #ifdef __cplusplus
29 extern "C"
30 {
31 #endif
32 
33 #ifdef NO_COLOR
34 #define FONT_GREEN
35 #define FONT_RED
36 #define FONT_DEFAULT
37 #else
38 #define FONT_GREEN "\e[32m"
39 #define FONT_RED "\e[31m"
40 #define FONT_DEFAULT "\e[0m"
41 #endif
42 
43 #ifdef __cplusplus
44 };
45 #endif
46 
47 #endif /*__LOGGING_H__*/
48