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#include <iostream>
3
4int main() {
5#ifdef OGDF_DEBUG
6 bool debugMode = true;
7#else
8 bool debugMode = false;
9#endif
10 std::cout << "This user program uses includes/headers for OGDF " << (debugMode ? "Debug" : "Release") << " mode." << std::endl;
11 std::cout << "The linked OGDF library was compiled in " << (ogdf::debugMode ? "Debug" : "Release") << " mode." << std::endl;
12 if (debugMode != ogdf::debugMode) {
13 std::cout << "Check your configuration!" << std::endl;
14 return 1;
15 }
16 std::cout << "Everything is fine!" << std::endl;
17 return 0;
18}
Basic declarations, included by all source files.
int main()
bool debugMode
Set to true iff debug mode is used during compilation of the OGDF.