Skip to content

Commit 1cd3c86

Browse files
committed
update internal doc
1 parent 327263e commit 1cd3c86

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

ortools/constraint_solver/docs/CP.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ Java and .Net. Each language have different requirements for the code samples.
1515
#include <ostream>
1616
#include <string>
1717

18+
#include "absl/base/log_severity.h"
19+
#include "absl/log/globals.h"
20+
#include "ortools/base/init_google.h"
1821
#include "ortools/constraint_solver/constraint_solver.h"
1922

2023
namespace operations_research {
@@ -59,7 +62,9 @@ void SimpleCpProgram() {
5962

6063
} // namespace operations_research
6164

62-
int main(int /*argc*/, char* /*argv*/[]) {
65+
int main(int argc, char* argv[]) {
66+
InitGoogle(argv[0], &argc, &argv, true);
67+
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
6368
operations_research::SimpleCpProgram();
6469
return EXIT_SUCCESS;
6570
}

ortools/routing/docs/ROUTING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ and .Net. Each language have different requirements for the code samples.
2424
#include <cstdlib>
2525
#include <sstream>
2626

27+
#include "absl/base/log_severity.h"
28+
#include "absl/log/globals.h"
2729
#include "absl/log/log.h"
30+
#include "ortools/base/init_google.h"
2831
#include "ortools/constraint_solver/constraint_solver.h"
2932
#include "ortools/routing/enums.pb.h"
3033
#include "ortools/routing/index_manager.h"
@@ -83,7 +86,9 @@ void SimpleRoutingProgram() {
8386

8487
} // namespace operations_research::routing
8588

86-
int main(int /*argc*/, char* /*argv*/[]) {
89+
int main(int argc, char* argv[]) {
90+
InitGoogle(argv[0], &argc, &argv, true);
91+
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
8792
operations_research::routing::SimpleRoutingProgram();
8893
return EXIT_SUCCESS;
8994
}

0 commit comments

Comments
 (0)