<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S12 / MagniV Microcontrollers中的主题 AMMCLIB errors in SWLIBS_MacroDisp.h</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/AMMCLIB-errors-in-SWLIBS-MacroDisp-h/m-p/747650#M15090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I using&amp;nbsp;AMMCLIB in S12ZVM, issues as following in&amp;nbsp;SWLIBS_MacroDisp.h&lt;/P&gt;&lt;P&gt;#ifndef SWLIBS_MACRODISP_H_&lt;BR /&gt;#define SWLIBS_MACRODISP_H_&lt;/P&gt;&lt;PRE&gt;#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 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;bad macro argument&lt;/STRONG&gt;
 /*
 * @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)&lt;STRONG&gt;bad macro argument &lt;/STRONG&gt; 
 /*
 * @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__))&lt;PRE&gt;&lt;STRONG&gt;bad macro argument&lt;/STRONG&gt;&lt;/PRE&gt;
 /*
 * @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_ */&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Three &lt;STRONG&gt;bad macro argument &lt;/STRONG&gt;error information&amp;nbsp; in&amp;nbsp;&lt;SPAN&gt;SWLIBS_MacroDisp.h. My compiler is cosmic. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latest MC9S12ZVM_AMMCLIB_v1.1.12 is used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So anyone has encountered this problem before? I am looking forward your help. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Apr 2018 08:11:57 GMT</pubDate>
    <dc:creator>xiemeijuan</dc:creator>
    <dc:date>2018-04-19T08:11:57Z</dc:date>
    <item>
      <title>AMMCLIB errors in SWLIBS_MacroDisp.h</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/AMMCLIB-errors-in-SWLIBS-MacroDisp-h/m-p/747650#M15090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I using&amp;nbsp;AMMCLIB in S12ZVM, issues as following in&amp;nbsp;SWLIBS_MacroDisp.h&lt;/P&gt;&lt;P&gt;#ifndef SWLIBS_MACRODISP_H_&lt;BR /&gt;#define SWLIBS_MACRODISP_H_&lt;/P&gt;&lt;PRE&gt;#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 &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;bad macro argument&lt;/STRONG&gt;
 /*
 * @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)&lt;STRONG&gt;bad macro argument &lt;/STRONG&gt; 
 /*
 * @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__))&lt;PRE&gt;&lt;STRONG&gt;bad macro argument&lt;/STRONG&gt;&lt;/PRE&gt;
 /*
 * @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_ */&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Three &lt;STRONG&gt;bad macro argument &lt;/STRONG&gt;error information&amp;nbsp; in&amp;nbsp;&lt;SPAN&gt;SWLIBS_MacroDisp.h. My compiler is cosmic. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The latest MC9S12ZVM_AMMCLIB_v1.1.12 is used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So anyone has encountered this problem before? I am looking forward your help. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 08:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/AMMCLIB-errors-in-SWLIBS-MacroDisp-h/m-p/747650#M15090</guid>
      <dc:creator>xiemeijuan</dc:creator>
      <dc:date>2018-04-19T08:11:57Z</dc:date>
    </item>
  </channel>
</rss>

