MCPcopy Create free account
hub / github.com/colmap/colmap / __CheckOptionImpl

Function __CheckOptionImpl

src/colmap/util/logging.cc:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool __CheckOptionImpl(const char* file,
50 const int line,
51 const bool result,
52 const char* expr_str) {
53 if (result) {
54 return true;
55 } else {
56 LOG(ERROR) << StringPrintf("[%s:%d] Check failed: %s",
57 __GetConstFileBaseName(file),
58 line,
59 expr_str);
60 return false;
61 }
62}
63
64} // namespace colmap

Callers

nothing calls this directly

Calls 2

StringPrintfFunction · 0.85
__GetConstFileBaseNameFunction · 0.85

Tested by

no test coverage detected