<?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>topic Why S32DS compiler can't recognize MARCO in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Why-S32DS-compiler-can-t-recognize-MARCO/m-p/714005#M1987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello dear all&lt;/P&gt;&lt;P&gt;i'v try to use MARCO function in S32DS like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef max&lt;BR /&gt;#define max(a,b) (((a) &amp;gt; (b)) ? (a) : (b))&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifndef min&lt;BR /&gt;#define min(a,b) (((a) &amp;lt; (b)) ? (a) : (b))&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it shows some error like this, how can i solve it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="marco_error.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27939iD42A338E83E1A3ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="marco_error.JPG" alt="marco_error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 10:39:51 GMT</pubDate>
    <dc:creator>alexhuang5367</dc:creator>
    <dc:date>2017-09-01T10:39:51Z</dc:date>
    <item>
      <title>Why S32DS compiler can't recognize MARCO</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-S32DS-compiler-can-t-recognize-MARCO/m-p/714005#M1987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello dear all&lt;/P&gt;&lt;P&gt;i'v try to use MARCO function in S32DS like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#ifndef max&lt;BR /&gt;#define max(a,b) (((a) &amp;gt; (b)) ? (a) : (b))&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;#ifndef min&lt;BR /&gt;#define min(a,b) (((a) &amp;lt; (b)) ? (a) : (b))&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it shows some error like this, how can i solve it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="marco_error.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27939iD42A338E83E1A3ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="marco_error.JPG" alt="marco_error.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 10:39:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-S32DS-compiler-can-t-recognize-MARCO/m-p/714005#M1987</guid>
      <dc:creator>alexhuang5367</dc:creator>
      <dc:date>2017-09-01T10:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why S32DS compiler can't recognize MARCO</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Why-S32DS-compiler-can-t-recognize-MARCO/m-p/714006#M1988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see anything suspicious on the screenshot you attached.&lt;/P&gt;&lt;P&gt;Could you possibly post the C statement at line 182?&lt;/P&gt;&lt;P&gt;I'd recommend you to preprocess the main.c - perhaps this gives you more info about the macro usage.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27422iDB30B847E4630EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 13:59:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Why-S32DS-compiler-can-t-recognize-MARCO/m-p/714006#M1988</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-09-01T13:59:11Z</dc:date>
    </item>
  </channel>
</rss>

