Dear All,
While analysing project code..i am not able to understand following peace of code..code any body help me out this?
Code:#ifdef QAC #pragma PRQA_MESSAGES_OFF 3409, 3410 #endif
Dear All,
While analysing project code..i am not able to understand following peace of code..code any body help me out this?
Code:#ifdef QAC #pragma PRQA_MESSAGES_OFF 3409, 3410 #endif
#ifdef XX
checks if there is a macro defined with the name XX. I would expect that QAC is a "compiler defined macro".
#pragma YYYY
is a compiler specific instruction to the compiler. In this case, it looks like it's disabling some warning messages - but that would be something you need to look at the specific compiler to find out.
#endif is the end of #if or #ifdef.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
No, macro would be more correct.
You'd get that something.Code:#define FOO #ifdef FOO /* something */ #endif
The OP may be asking what the general intent of the code is.
It is designed to suppress the specified warning messages. You'd have to look up what the 3409 and 3410 messages talk about and why it would be OK to suppress such messages.