When I using AMMCLIB in S12ZVM, issues as following in SWLIBS_MacroDisp.h
#ifndef SWLIBS_MACRODISP_H_
#define SWLIBS_MACRODISP_H_
#ifndef _MATLAB_BAM_CREATE /* * @violates @ref SWLIBS_MacroDisp_h_REF_1 MISRA 2004 Required Rule 19.4, Disallowed definition for * macro. * @violates @ref SWLIBS_MacroDisp_h_REF_2 MISRA 2004 Advisory Rule 19.7, Function-like macro * defined. * @violates @ref SWLIBS_MacroDisp_h_REF_3 MISRA 2004 Required Rule 20.2, Re-use of C90 identifier. * @violates @ref SWLIBS_MacroDisp_h_REF_4 MISRA 2004 Required Rule 19.10, Unparenthesized macro * parameter in definition of macro. */ #define _ARG2(_0, _1, _2, _3, _4, _5, _6, _7,...) _7 bad macro argument /* * @violates @ref SWLIBS_MacroDisp_h_REF_1 MISRA 2004 Required Rule 19.4, Disallowed definition for * macro. * @violates @ref SWLIBS_MacroDisp_h_REF_2 MISRA 2004 Advisory Rule 19.7, Function-like macro * defined. * @violates @ref SWLIBS_MacroDisp_h_REF_4 MISRA 2004 Required Rule 19.10, Unparenthesized macro * parameter in definition of macro. */ #define VA_NUM_ARGS(...) _ARG2(__VA_ARGS__, 7, 6, 5, 4, 3, 2, 1, 0)bad macro argument /* * @violates @ref SWLIBS_MacroDisp_h_REF_1 MISRA 2004 Required Rule 19.4, Disallowed definition for * macro. * @violates @ref SWLIBS_MacroDisp_h_REF_2 MISRA 2004 Advisory Rule 19.7, Function-like macro * defined. * @violates @ref SWLIBS_MacroDisp_h_REF_4 MISRA 2004 Required Rule 19.10, Unparenthesized macro * parameter in definition of macro. */ #define macro_dispatcher(func, ...) macro_dispatcher_(func, VA_NUM_ARGS(__VA_ARGS__))bad macro argument/* * @violates @ref SWLIBS_MacroDisp_h_REF_1 MISRA 2004 Required Rule 19.4, Disallowed definition for * macro. * @violates @ref SWLIBS_MacroDisp_h_REF_2 MISRA 2004 Advisory Rule 19.7, Function-like macro * defined. * @violates @ref SWLIBS_MacroDisp_h_REF_4 MISRA 2004 Required Rule 19.10, Unparenthesized macro * parameter in definition of macro. */ #define macro_dispatcher_(func, nargs) macro_dispatcher__(func, nargs) #endif /* _MATLAB_BAM_CREATE */ /* * @violates @ref SWLIBS_MacroDisp_h_REF_1 MISRA 2004 Required Rule 19.4, Disallowed definition for * macro. * @violates @ref SWLIBS_MacroDisp_h_REF_2 MISRA 2004 Advisory Rule 19.7, Function-like macro * defined. * @violates @ref SWLIBS_MacroDisp_h_REF_5 MISRA 2004 Advisory Rule 19.13, #/##' operator used in * macro. * @violates @ref SWLIBS_MacroDisp_h_REF_6 MISRA 2004 Required Rule 19.12, Multiple use of '#/##' * operators in definition of macro. */ #define macro_dispatcher__(func, nargs) func##_Dsptchr_## nargs #endif /* SWLIBS_MACRODISP_H_ */
Three bad macro argument error information in SWLIBS_MacroDisp.h. My compiler is cosmic.
The latest MC9S12ZVM_AMMCLIB_v1.1.12 is used.
So anyone has encountered this problem before? I am looking forward your help. Thanks