Quantcast
Channel: Active questions tagged autosar - Stack Overflow
Viewing all articles
Browse latest Browse all 98

Is the Rte_IRead API always implemented as a macro?

$
0
0

The AUTOSAR_SWS_RTE (R22-11) document gives several examples of Rte_IRead and Rte_IWrite implementation as macros (see "Example 5.23"). Also, SWS_Rte_03730 reads:

Pure API macros, like Rte_IRead and other implicit API functions, do not have a function table entry.

Suggesting that the Rte_IRead commands are always implemented as macros.

However, I have an AUTOSAR Authoring tool which declares Rte_IRead both as C functions and as macros. In practice, the macro is always selected since the preprocessor comes before the name resolution in C.

Is there an AUTOSAR Authoring tool where the Rte_IRead commands are implemented only as functions and not as macros?


Viewing all articles
Browse latest Browse all 98

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>