| 98 | } // anonymous |
| 99 | |
| 100 | std::unique_ptr<MemorySource> try_open_mmap_memory_source(const std::filesystem::path& p) { |
| 101 | try { |
| 102 | return std::make_unique<MmapMemorySource>(p); |
| 103 | } catch (const std::exception& e) { |
| 104 | log::warn("mmap source failed ({}); falling back to file source", e.what()); |
| 105 | return nullptr; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | #else // _WIN32 |
| 110 |
no test coverage detected