Create a _RETURN_IF()
fpp-macro
#2034
Labels
0 Diff Trivial
The changes in this pull request are trivially zero-diff (documentation, build failure, &c.)
❗ High Priority
This is a high priority PR
🎁 New Feature
This is a new feature
A common pattern is to return early from a procedure if a certain condition holds. E.g.,
Unfortunately, this does not play well with our return code mechanism for error handling, which forces us to write instead:
I propose a new macro
_RETURN_IF(...)
that returns this to a 1-liner while retaining clarity.The text was updated successfully, but these errors were encountered: