| 47 | } |
| 48 | |
| 49 | bool __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 |
nothing calls this directly
no test coverage detected