FastLED 3.10.8
Loading...
Searching...
No Matches

◆ singleton_registry_set()

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

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

28 {
29 // Check if already registered (update)
30 for (int i = 0; i < registry_count; i++) {
31 if (fl::strcmp(registry[i].key, key) == 0) {
32 registry[i].value = value;
33 return;
34 }
35 }
36 // Add new entry
37 if (registry_count < REGISTRY_MAX) {
38 registry[registry_count++] = {key, value};
39 }
40}
constexpr int type_rank< T >::value
FASTLED_FORCE_INLINE int strcmp(const char *s1, const char *s2) FL_NO_EXCEPT
Definition cstring.h:60

References fl::FL_NO_EXCEPT, fl::strcmp(), 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 call graph for this function:
+ Here is the caller graph for this function: