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

Function _normalize_define

ci/check_backend_flag_drift.py:160–166  ·  view source on GitHub ↗

Strip backend-version noise from a single define; None to drop entirely.

(define: str)

Source from the content-addressed store, hash-verified

158
159
160def _normalize_define(define: str) -> str | None:
161 """Strip backend-version noise from a single define; None to drop entirely."""
162 # PIO emits "PLATFORMIO=60119"; fbuild emits "PLATFORMIO". Normalize both
163 # to just the bare name so we don't false-positive on the version stamp.
164 if _PIO_VERSION_DEFINE_RE.match(define):
165 return "PLATFORMIO"
166 return define
167
168
169def _normalize_include(path: str) -> str:

Callers 1

normalize_build_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected