| 18 | } |
| 19 | |
| 20 | void printEngineValidation() { |
| 21 | auto infos = channelManager().getDriverInfos(); |
| 22 | |
| 23 | if (infos.empty()) { |
| 24 | FL_ERROR("[VALIDATION] No drivers registered with ChannelManager!"); |
| 25 | return; |
| 26 | } |
| 27 | |
| 28 | FL_WARN("\n[VALIDATION] Registered drivers: " << infos.size()); |
| 29 | for (fl::size i = 0; i < infos.size(); i++) { |
| 30 | const auto& info = infos[i]; |
| 31 | FL_UNUSED(info); // silences -Wunused-variable when FL_WARN is a no-op |
| 32 | FL_WARN(" - " << info.name.c_str() |
| 33 | << " (priority=" << info.priority |
| 34 | << ", enabled=" << (info.enabled ? "true" : "false") |
| 35 | << ")"); |
| 36 | } |
| 37 | FL_WARN("[VALIDATION] Driver registration OK"); |
| 38 | } |
| 39 | |
| 40 | } // namespace validation |
| 41 | } // namespace fl |
no test coverage detected