00001 /* 00002 * Copyright (C) 2008 Kamil Dudka <xdudka00@stud.fit.vutbr.cz> 00003 * 00004 * This file is part of rob08 00005 * 00006 * rob08 is free software: you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * any later version. 00010 * 00011 * rob08 is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with rob08. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef CONFIG_H 00021 #define CONFIG_H 00022 00023 /* if non-zero, turn on colorized console output (stderr only) */ 00024 #define CONSOLE_COLOR_OUTPUT 1 00025 00026 /* ************************************************************************** */ 00027 /* diagnostic configuration, zero means "turn this diagnostic off" */ 00028 #define DEBUG_MUTEX 0 00029 #define DEBUG_SHRINK_PATH 0 00030 #define DEBUG_STDIN_AS_TERM 0 00031 #define DEBUG_TERM_POLL 0 00032 #define DEBUG_TERM_INPUT 0 00033 #define DEBUG_TERM_OUTPUT 0 00034 #define DEBUG_THREAD 0 00035 #define DEBUG_VSCAN 0 00036 #define DEBUG_VSCAN_OUTPUT 0 00037 00039 #define DEBUG_TRAJECTORY_VIS 0 00040 00042 #define DEBUG_WRITE_TRAJECTORY 0 00043 00045 #define DEBUG_COLLISIONS 0 00046 00048 #define DEBUG_DONT_EXPORT 0 00049 00050 /* ************************************************************************** */ 00051 /* define different macros for Doxygen and ordinary build */ 00052 #ifdef BUILDING_DOX 00053 00054 /* use native pointer instead of boost::shared_ptr while building dox */ 00055 #define SHARED_PTR(T) T* 00056 00057 /* use native C array instead of std::map while building dox */ 00058 #define STD_MAP(T1, T2) T2* 00059 00060 /* use user defined struct instead of std::pair while building dox */ 00061 #define STD_PAIR(T1, T2) struct {T1 first; T2 second;} 00062 00063 /* use native C array instead of std::priority_queue while building dox */ 00064 #define STD_PRIORITY_QUEUE(T) T* 00065 00066 /* use native C array instead of std::set while building dox */ 00067 #define STD_SET(T) T* 00068 00069 /* use native C array instead of std::stack while building dox */ 00070 #define STD_STACK(T) T* 00071 00072 /* use native C array instead of std::vector while building dox */ 00073 #define STD_VECTOR(T) T* 00074 00075 #else /* BUILDING_DOX */ 00076 00077 /* use what ought to be used while building code */ 00078 #define SHARED_PTR(T) boost::shared_ptr<T> 00079 #define STD_MAP(T1, T2) std::map<T1, T2> 00080 #define STD_PAIR(T1, T2) std::pair<T1, T2> 00081 #define STD_PRIORITY_QUEUE(T) std::priority_queue<T> 00082 #define STD_SET(T) std::set<T> 00083 #define STD_STACK(T) std::stack<T> 00084 #define STD_VECTOR(T) std::vector<T> 00085 00086 #endif /* BUILDING_DOX */ 00087 00088 #endif /* CONFIG_H */
1.5.4