Print validation results (logs registered drivers and status)
Definition at line 21 of file platform.cpp.hpp.
21 {
23
24 if (infos.empty()) {
25 FL_ERROR(
"[VALIDATION] No drivers registered with ChannelManager!");
26 return;
27 }
28
29 FL_WARN(
"\n[VALIDATION] Registered drivers: " << infos.size());
30 for (fl::size i = 0; i < infos.size(); i++) {
31 const auto& info = infos[i];
33 FL_WARN(
" - " << info.name.c_str() <<
" (priority=" << info.priority <<
", enabled=" << ((info.enabled ?
"true" :
"false")) <<
")");
34 }
35 FL_WARN(
"[VALIDATION] Driver registration OK");
36}
fl::span< const DriverInfo > getDriverInfos() const FL_NO_EXCEPT
Get full state of all registered drivers.
ChannelManager & channelManager() FL_NO_EXCEPT
Get the global ChannelManager singleton instance.
References fl::channelManager(), FL_ERROR, fl::FL_NO_EXCEPT, FL_UNUSED, FL_WARN, and fl::ChannelManager::getDriverInfos().