<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>why use do while?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2075/why-use-do-while</link><description>#define APP_ERROR_CHECK(ERR_CODE) 
do 
{ 
const uint32_t LOCAL_ERR_CODE = (ERR_CODE); 
if (LOCAL_ERR_CODE != NRF_SUCCESS) 
{ 
APP_ERROR_HANDLER(LOCAL_ERR_CODE); 
} 
} while (0) 
 I saw this a lot, is it for save one int from stack?
if so
how</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Apr 2014 08:20:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2075/why-use-do-while" /><item><title>RE: why use do while?</title><link>https://devzone.nordicsemi.com/thread/8909?ContentTypeID=1</link><pubDate>Thu, 03 Apr 2014 08:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5ef9142-3f1a-4c95-b8fe-8e08df00180e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Julian,&lt;/p&gt;
&lt;p&gt;This is a way of nesting a multistatement function. It&amp;#39;s widely used in C.
&lt;a href="http://stackoverflow.com/questions/257418/do-while-0-what-is-it-good-for"&gt;stackoverflow.com/.../do-while-0-what-is-it-good-for&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;-H&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>