Hi all,
i have a little problem with the #define NRF_LOG. I have this warnings, and i don't know why.
Warning[Pg004]: macro parameter "VA_ARGS" is used in both expanded and raw forms
Someone have an idea about the reason?
Thank you, Anna
Hi all,
i have a little problem with the #define NRF_LOG. I have this warnings, and i don't know why.
Warning[Pg004]: macro parameter "VA_ARGS" is used in both expanded and raw forms
Someone have an idea about the reason?
Thank you, Anna
The easiest way to fix this is just to add a second set of braces:
NRF_LOG((NRF_LOG_COLOR_RED "\n*** ASSERTION FAILED ***\n"));
This seems to force the preprocessor to perform the string concatenation before attempting to expand the NRF_LOG macro.
The easiest way to fix this is just to add a second set of braces:
NRF_LOG((NRF_LOG_COLOR_RED "\n*** ASSERTION FAILED ***\n"));
This seems to force the preprocessor to perform the string concatenation before attempting to expand the NRF_LOG macro.