Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

check-build-mode.cpp
Go to the documentation of this file.
1 #include <ogdf/basic/basic.h>
2 #include <iostream>
3 
4 int main() {
5 #ifdef OGDF_DEBUG
6  bool debugMode = true;
7 #else
8  bool debugMode = false;
9 #endif
10  std::cout << "This user program is compiled in " << (debugMode ? "Debug" : "Release") << " mode." << std::endl;
11  std::cout << "The OGDF is 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 }
ogdf::debugMode
bool debugMode
Set to true iff debug mode is used during compilation of the OGDF.
main
int main()
Definition: check-build-mode.cpp:4
basic.h
Basic declarations, included by all source files.