Open
Graph Drawing
Framework
v. 2023.09 (Elderberry)
Overview
Class Hierarchy
Class Index
Class List
Members
Namespaces
Source Files
Loading...
Searching...
No Matches
check-build-mode.cpp
Go to the documentation of this file.
1
#include <
ogdf/basic/basic.h
>
2
3
int
main
() {
4
#ifdef OGDF_DEBUG
5
bool
debugMode =
true
;
6
#else
7
bool
debugMode =
false
;
8
#endif
9
std::cout <<
"This user program is compiled in "
<< (debugMode ?
"Debug"
:
"Release"
) <<
" mode."
<< std::endl;
10
std::cout <<
"The OGDF is compiled in "
<< (
ogdf::debugMode
?
"Debug"
:
"Release"
) <<
" mode."
<< std::endl;
11
if
(debugMode !=
ogdf::debugMode
) {
12
std::cout <<
"Check your configuration!"
<< std::endl;
13
return
1;
14
}
15
std::cout <<
"Everything is fine!"
<< std::endl;
16
return
0;
17
}
basic.h
Basic declarations, included by all source files.
main
int main()
Definition
check-build-mode.cpp:3
ogdf::debugMode
bool debugMode
Set to true iff debug mode is used during compilation of the OGDF.
doc
examples
special
check-build-mode.cpp
© 1999–2023
The OGDF Team