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
tests: crypto: use IS_ENABLED() for conditional logic instead of #if
Refactor psa_crypto_test to use IS_ENABLED(CONFIG_TEST_WRAPPED_KEYS)
inside the test function for better readability and maintainability.
- Replaced #if / #endif blocks inside functions with IS_ENABLED() checks
so conditions can be expressed as normal C expressions.
- Retained #if only for global constant definitions where IS_ENABLED()
cannot be used by the preprocessor.
- Added <zephyr/sys/util.h> include to access IS_ENABLED().
- Ensures dead code is optimized out by the compiler without runtime cost.
Signed-off-by: Aasim Shaik <[email protected]>
0 commit comments