Why the following code is the violation of MISRA 20.2 ?
Code: Select all
#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.
Users browsing this forum: No registered users and 1 guest