<?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 Re: __LINE__ and affiliates in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536112#M4919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Oct 07 02:34:11 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try changing to something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;sprintf(UART_string,"Example: %s %s&amp;nbsp; \r\n", __TIMESTAMP__,__LINE__ );
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;The following article might be helpful too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.decompile.com/cpp/faq/file_and_line_error_string.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:09:06 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:09:06Z</dc:date>
    <item>
      <title>__LINE__ and affiliates</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536111#M4918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Brinkand on Thu Oct 07 02:25:16 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to be able to add code line number and build dates into my debug output, which I output on the UART of an LPC111x using sprintf. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I included __LINE__ and __TIMESTAMP__ in sprintf arguments and #warning, but they are not recognized. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;sprintf(UART_string,"Example: __TIMESTAMP__ __LINE__ \r\n");&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;Are they available and how do I activate them?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there alternative ways to get release time stamp into debug information?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:09:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536111#M4918</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: __LINE__ and affiliates</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536112#M4919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CodeRedSupport on Thu Oct 07 02:34:11 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Try changing to something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;sprintf(UART_string,"Example: %s %s&amp;nbsp; \r\n", __TIMESTAMP__,__LINE__ );
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;The following article might be helpful too:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.decompile.com/cpp/faq/file_and_line_error_string.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CodeRedSupport&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536112#M4919</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: __LINE__ and affiliates</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536113#M4920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Oct 07 02:40:22 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I've used:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
printf("LPC11C14-CAN Version 1.0 "__DATE__" "__TIME__"\n\r");
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536113#M4920</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: __LINE__ and affiliates</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536114#M4921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Brinkand on Thu Oct 07 03:00:39 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Terrific! Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536114#M4921</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: __LINE__ and affiliates</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536115#M4922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Oct 07 03:48:09 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also use simple concatenation (and thus remove the need to sprintf)&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
UART_string = "Example: " _TIMESTAMP__ " " __LINE__ "\r\n" ;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536115#M4922</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: __LINE__ and affiliates</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536116#M4923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by renan on Thu Oct 07 04:34:09 MST 2010&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: CodeRedSupport&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The following article might be helpful too:&lt;BR /&gt;&lt;A href="http://"&gt;http://www.decompile.com/cpp/faq/file_and_line_error_string.htm&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The following article is helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Renan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LINE-and-affiliates/m-p/536116#M4923</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:09:08Z</dc:date>
    </item>
  </channel>
</rss>

