MicroModelicaCCompiler  4.5.3
debug.hpp
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  This file is part of QSS Solver.
4 
5  QSS Solver is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  QSS Solver is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QSS Solver. If not, see <http://www.gnu.org/licenses/>.
17 
18  ******************************************************************************/
19 
20 namespace MicroModelica {
21 
22 namespace Util {
23 // This debugging routines allow the user to turn on selected
24 // debugging messages, controllable from the command line arguments
25 // passed to modelicacc after de -d option.
34 void debugInit(const char *flags);
35 
39 void DEBUG(char flag, const char *format, ...);
40 
41 bool isDebugParam(char *param);
42 
43 /*
44  * Print an ERROR message. Then exits with EXIT_FAILURE status.
45  */
46 void ERROR(const char *format, ...);
47 
52 void ERROR_UNLESS(bool condition, const char *format, ...);
53 } // namespace Util
54 } // namespace MicroModelica
MicroModelica::Util::ERROR
void ERROR(const char *format,...)
Definition: debug.cpp:101
MicroModelica::Util::isDebugParam
bool isDebugParam(char *param)
Definition: debug.cpp:87
MicroModelica::Util::debugInit
void debugInit(const char *flagList)
Definition: debug.cpp:66
MicroModelica::Util::DEBUG
void DEBUG(char flag, const char *format,...)
Definition: debug.cpp:76
MicroModelica::Util::ERROR_UNLESS
void ERROR_UNLESS(bool condition, const char *format,...)
Definition: debug.cpp:115
MicroModelica
Definition: files.cpp:45