<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Oct 16, 2017 at 3:36 PM, Darius Blaszyk <span dir="ltr"><<a href="mailto:dhkblaszyk@zeelandnet.nl" target="_blank">dhkblaszyk@zeelandnet.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="font-size:10pt;font-family:Arial,Helvetica,sans-serif">
Here's an interesting one. In C I have this code:<br><br>#define ID1 MAKE_ID('A', 'B')<br><br>Where MAKE_ID is a macro that depending on the endianness of the target will create either AB or BA.<br><br></div></blockquote><div>The only issue with the following approach</div><div>const</div><div>  ID  ={$IFDEF ENDIAN_LITTLE} 'AB' {$ELSE} 'BA' {$ENDIF};</div><div><br></div><div>is if MAKE_ID is used anywhere else, you'll have to repeat the code.</div><div><br></div><div>thanks,</div><div>Dmitry</div></div></div></div>