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

Function getPayloadPath

tests/fl/codec/decode_file.hpp:63–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61static const char* DEFAULT_PAYLOAD_PATH = ".build/decode_payload.json";
62
63static const char* getPayloadPath() {
64 const char* env = ::getenv("FASTLED_DECODE_PAYLOAD");
65 if (env && env[0]) {
66 return env;
67 }
68 return DEFAULT_PAYLOAD_PATH;
69}
70
71static fl::string readFileToString(const char* path) {
72 fl::FILE* f = fl::fopen(path, "rb");

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 1

getenvFunction · 0.85

Tested by

no test coverage detected