You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FW_NO_ASSERT reduces the FW_ASSERT macro to "", that is, it is compiled-out. However, this breaks assertions with side-effect inducing code (see example below).
We need to fix several things:
Clean up the fprime framework code to not depend on side-effects in FW_ASSERT calls
Make the default FW_NO_ASSERT option maintain side-effects
Add an option for power-users to return FW_NO_ASSERT to the completely removed case.
Update style guidelines to call this coding flaw out
Problem Description
FW_NO_ASSERT reduces the FW_ASSERT macro to "", that is, it is compiled-out. However, this breaks assertions with side-effect inducing code (see example below).
We need to fix several things:
Example offending code:
fprime/Svc/GenericHub/GenericHubComponentImpl.cpp
Line 169 in 6641547
The text was updated successfully, but these errors were encountered: