-
Notifications
You must be signed in to change notification settings - Fork 30
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
Remove conditionally compiled code #95
Labels
Comments
chillfig
pushed a commit
to chillfig/DS
that referenced
this issue
Feb 15, 2024
chillfig
pushed a commit
to chillfig/DS
that referenced
this issue
Feb 15, 2024
2 tasks
chillfig
pushed a commit
to chillfig/DS
that referenced
this issue
Feb 27, 2024
chillfig
pushed a commit
to chillfig/DS
that referenced
this issue
Feb 29, 2024
chillfig
pushed a commit
to chillfig/DS
that referenced
this issue
Mar 26, 2024
chillfig
pushed a commit
that referenced
this issue
Mar 28, 2024
dzbaker
added a commit
that referenced
this issue
Mar 28, 2024
Fix #95, Replaces conditionally compiled code with runtime conditional logic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist (Please check before submitting)
Is your feature request related to a problem? Please describe.
Conditionally-compiled code is a maintenance problem because code then needs to be validated both ways, with the condition on and off, and it is easy for the lesser-used/non-default option to become stale or broken, particularly with respect to the coverage testing.
Describe the solution you'd like
Remove conditional compilation, replace with runtime conditional checks, which can be constant-value in FSW context, but can be coverage test both ways via a single binary build.
Additional context
In general conditional compilation of large chunks of code should be avoided, per 582 coding standards.
Example here of a block that is 84 lines long:
DS/fsw/src/ds_file.c
Lines 804 to 893 in ce98853
Requester Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: