FastLED 3.9.15
Loading...
Searching...
No Matches

◆ singleton_registry_get()

void * fl::detail::singleton_registry_get ( const char * key)

Definition at line 17 of file singleton.cpp.hpp.

17 {
18 for (int i = 0; i < registry_count; i++) {
19 if (fl::strcmp(registry[i].key, key) == 0) {
20 return registry[i].value;
21 }
22 }
23 return nullptr;
24}
int strcmp(const char *s1, const char *s2) FL_NOEXCEPT

References fl::strcmp(), and fl::detail::anonymous_namespace{singleton.cpp.hpp}::RegistryEntry::value.

Referenced by fl::SingletonShared< T, N >::instance().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: