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