| MISRA Rule | MISRA Rule Description | Rhapsody-C 7.5.3/ mxf Compliance Status | Violation Description, Comments | |
|---|---|---|---|---|
| 98 | 2004 | |||
| 93 (A) | 19.7 (A) | Functions and macros | Not compliant. | Used to provide better performance in some environments that do not support efficient functions inlining. |
| 96 (R) | 19.10 (R) | Not compliant, in some specific places called from the mxf code. Can be avoided by not using the specific constructs listed in the description here. | Not compliant, from some places in the OXF code. | Parameters encapsulation:
|
| N/A | 19.13 (A) | The # and ## preprocessor operators must not be used. | Not compliant. | Used to provide better flexibility of the .mxf file. |
Violation description: Macros are used instead of functions to be more efficient and provide better performance in some environments that do not support efficient functions inlining.
#define RiCGEN(INSTANCE,EVENT) \
((INSTANCE) != NULL) ? RiCReactive_gen(&((INSTANCE)->ric_reactive), (EVENT), RiCFALSE): RiCFALSE