26-04-2018, 02:18 PM
Hello,
Why the following code is the violation of MISRA 20.2 ?
As far as I understand from the topics , 20.2 does not concern with preprocessor identifier then why I get an violation for the same.
Why the following code is the violation of MISRA 20.2 ?
Code:
#define abs(a) (((a) < (0)) ? -(a) : (a))
As far as I understand from the topics , 20.2 does not concern with preprocessor identifier then why I get an violation for the same.
<t></t>