Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEDs: Expose presence #45

Merged
merged 2 commits into from
Aug 24, 2024
Merged

LEDs: Expose presence #45

merged 2 commits into from
Aug 24, 2024

Conversation

chrysn
Copy link
Member

@chrysn chrysn commented Aug 24, 2024

This adds infrastructure to expose the LEDn_IS_PRESENT macro, and exposes the macro itself.

chrysn added 2 commits August 25, 2024 00:41
This makes most sense for const macros, whose absence can now be checked
for at build time (but producing a proper error rather than just not
compiling for lack of a symbol)
Beware that while macros defined on the compiler level with `-DNAME`
have an implicit value of 1, macros defined with `#define NAME`
apparently have an implicit value of 0.
@chrysn chrysn merged commit 03117e4 into main Aug 24, 2024
3 checks passed
@chrysn chrysn deleted the leds branch August 24, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant