FastLED 3.10.9
Loading...
Searching...
No Matches

◆ singleton_registry_set()

void fl::detail::singleton_registry_set ( const char * key,
void * value )

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

56 {
57 // Check if already registered (update)
58 for (int i = 0; i < registry_count; i++) {
59 if (keys_equal(registry[i].key, key)) {
60 registry[i].value = value;
61 return;
62 }
63 }
64 // Add new entry
65 if (registry_count < REGISTRY_MAX) {
66 registry[registry_count++] = {key, value};
67 }
68}
constexpr int type_rank< T >::value

References fl::FL_NO_EXCEPT, fl::type_rank< T >::value, and fl::detail::anonymous_namespace{singleton.cpp.hpp}::RegistryEntry::value.

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

+ Here is the caller graph for this function: