config.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008 Kamil Dudka <xdudka00@stud.fit.vutbr.cz>
00003  *
00004  * This file is part of vyp08 (compiler and interpreter of VYP08 language).
00005  *
00006  * vyp08 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  * vyp08 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 vyp08.  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_TRACE_CALL            0
00029 #define DEBUG_TRACE_CMD_LIST_EXEC   0
00030 #define DEBUG_BISON_LISTENER_STACK  0
00031 #define DEBUG_TRACE_VMSTACK         0
00032 #define DEBUG_TRACE_TYPESTACK       0
00033 
00034 /* ************************************************************************** */
00035 /* define different macros for Doxygen and ordinary build */
00036 #ifdef BUILDING_DOX
00037 
00038 /* use native pointer instead of boost::shared_ptr while building dox */
00039 #define SHARED_PTR(T) T*
00040 
00041 /* use native C array instead of std::map while building dox */
00042 #define STD_MAP(T1, T2) T2*
00043 
00044 /* use user defined struct instead of std::pair while building dox */
00045 #define STD_PAIR(T1, T2) struct {T1 first; T2 second;}
00046 
00047 /* use native C array instead of std::priority_queue while building dox */
00048 #define STD_PRIORITY_QUEUE(T) T*
00049 
00050 /* use native C array instead of std::set while building dox */
00051 #define STD_SET(T) T*
00052 
00053 /* use native C array instead of std::stack while building dox */
00054 #define STD_STACK(T) T*
00055 
00056 /* use native C array instead of std::vector while building dox */
00057 #define STD_VECTOR(T) T*
00058 
00059 #else /* BUILDING_DOX */
00060 
00061 /* use what ought to be used while building code */
00062 #define SHARED_PTR(T)           boost::shared_ptr<T>
00063 #define STD_MAP(T1, T2)         std::map<T1, T2>
00064 #define STD_PAIR(T1, T2)        std::pair<T1, T2>
00065 #define STD_PRIORITY_QUEUE(T)   std::priority_queue<T>
00066 #define STD_SET(T)              std::set<T>
00067 #define STD_STACK(T)            std::stack<T>
00068 #define STD_VECTOR(T)           std::vector<T>
00069 
00070 #endif /* BUILDING_DOX */
00071 
00072 #endif /* CONFIG_H */

Generated on Sat Jul 4 18:32:59 2009 for vyp08 (compiler and interpreter of VYP08 language) by  doxygen 1.5.4