MCPcopy Create free account
hub / github.com/FastLED/FastLED / singleton_registry_get

Function singleton_registry_get

src/fl/stl/singleton.cpp.hpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15} // anonymous namespace
16
17void* singleton_registry_get(const char* key) {
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}
25
26void singleton_registry_set(const char* key, void* value) {
27 // Check if already registered (update)

Callers 1

SingletonSharedClass · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected