Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 19.12 (# and ## operator) real issue?
#7
The previous response gives two preprocessing tokens regardless of order of evaluation of ## operators.

A better example would be:

Code:
#define m(a,b) a##.##b

m(1,e30)

which is defined on a left-to-right evaluation but undefined on right-to-left because .e30 is two preprocessing tokens.
Posted by and on behalf of the MISRA C Working Group
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)