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

◆ keys_equal()

bool fl::detail::anonymous_namespace{singleton.cpp.hpp}::keys_equal ( const char * a,
const char * b )

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

26 {
27 if (a == b) {
28 return true;
29 }
30#ifdef FL_IS_ESP8266
31 for (;; ++a, ++b) {
32 const char ca = static_cast<char>(FL_PGM_READ_BYTE_NEAR(a));
33 const char cb = static_cast<char>(FL_PGM_READ_BYTE_NEAR(b));
34 if (ca != cb) {
35 return false;
36 }
37 if (ca == '\0') {
38 return true;
39 }
40 }
41#else
42 return fl::strcmp(a, b) == 0;
43#endif
44 }
#define FL_PGM_READ_BYTE_NEAR(x)
Read a byte (8-bit) from PROGMEM memory.
FASTLED_FORCE_INLINE int strcmp(const char *s1, const char *s2) FL_NO_EXCEPT
Definition cstring.h:60

References fl::FL_NO_EXCEPT, FL_PGM_READ_BYTE_NEAR, keys_equal(), and fl::strcmp().

Referenced by keys_equal().

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