Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
check-build-mode.cpp
Go to the documentation of this file.
1#include <ogdf/basic/basic.h>
2
3int 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 declarations, included by all source files.
int main()
bool debugMode
Set to true iff debug mode is used during compilation of the OGDF.