MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / configEnumGetNameOrUnknown

Function configEnumGetNameOrUnknown

src/config.cpp:294–297  ·  view source on GitHub ↗

Wrapper for configEnumGetName() returning "unknown" instead of NULL if * there is no match. */

Source from the content-addressed store, hash-verified

292/* Wrapper for configEnumGetName() returning "unknown" instead of NULL if
293 * there is no match. */
294const char *configEnumGetNameOrUnknown(configEnum *ce, int val) {
295 const char *name = configEnumGetName(ce,val);
296 return name ? name : "unknown";
297}
298
299/* Used for INFO generation. */
300const char *evictPolicyToString(void) {

Callers 3

evictPolicyToStringFunction · 0.85
rewriteConfigEnumOptionFunction · 0.85
enumConfigGetFunction · 0.85

Calls 1

configEnumGetNameFunction · 0.85

Tested by

no test coverage detected