<div class="gmail_quote">On Thu, Feb 4, 2010 at 9:51 AM, Gabriel Dos Reis <span dir="ltr"><<a href="mailto:gdr@integrable-solutions.net">gdr@integrable-solutions.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">Indeed.  But, if you do, please make sure it is prefixed (e.g. ecl_likely.)</div></div>
Some systems tend to define such macros -- I ran into that issue about<br>
4 years ago.<br></blockquote><div><br></div><div>I am going to use ecl_likely and ecl_unlikely. Currently I am also using __attribute__ but will move towards ECL_NORETURN, ECL_PURE or something like that.</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
BTW, GCC attributes can make codes very ugly to read.  I don't have<br>
a general remedy for that, except adopting the style we use in GCC's own<br>
source code.</blockquote><div><br></div><div>The expectations are the ugliest part. Attributes of functions can be constrained to headers and are not that harmful. By the way, are you familiar with the problem of __attribute__((noreturn)) and longjmp that I mentioned before? Is GCC >= 4.x safe in this respect?</div>
<div><br></div><div>Juanjo</div></div><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>