目录
前往《Autosar深入理解-总目录》
前往《教你如何阅读Autosar代码-总目录》
1 FUNC
/* FUNC macro for the declaration and definition of functions, that ensures correct syntax of function declarations
rettype return type of the function
memclass classification of the function itself*/
# define FUNC(rettype, memclass) rettype
retype:函数的返回类型;
memclass:函数本身的分类;
编译器抽象应该为函数的声明和定义定义FUNC宏,以确保函数声明的语法符合特定编译器的要求。