<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=21323&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2018-09-24T17:21:34+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=21323&amp;mode</id>
<entry>
<author><name><![CDATA[andrews]]></name></author>
<updated>2018-09-24T17:21:34+01:00</updated>
<published>2018-09-24T17:21:34+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21323&amp;p=211953#p211953</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21323&amp;p=211953#p211953"/>
<title type="html"><![CDATA[Re: definicje preprocesora]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21323&amp;p=211953#p211953"><![CDATA[
[syntax=c]#define KBD_OUT_INIT(PIN)                                \<br />        KBD_OUT_DDR  ## PIN &amp;= ~(1&lt;&lt;KBD_OUT_PIN ## PIN); \<br />        KBD_OUT_PORT ## PIN |=  (1&lt;&lt;KBD_OUT_PIN ## PIN)[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14165">andrews</a> — 24 wrz 2018, o 17:21</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[MateuszS]]></name></author>
<updated>2018-09-24T15:05:20+01:00</updated>
<published>2018-09-24T15:05:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=21323&amp;p=211950#p211950</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=21323&amp;p=211950#p211950"/>
<title type="html"><![CDATA[definicje preprocesora]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=21323&amp;p=211950#p211950"><![CDATA[
Cześć,<br />chciałbym, aby moje definicje były bardziej czytelne. Kompilator nie przepuszcza mi czegoś takiego:<br /><br />[syntax=c]#define KBD_OUT_INIT(PIN)<br />KBD_OUT_DDR ## PIN &amp;= ~(1&lt;&lt;KBD_OUT_PIN ## PIN);<br />KBD_OUT_PORT ## PIN |=  (1&lt;&lt;KBD_OUT_PIN ## PIN)[/syntax]<br />Automatycznie &quot;##&quot; przestają być podświetlane przez Eclipsa informując, że operacja sklejania się nie powiedzie. <br />Czy istnieje jakiś trick, aby uniknąć pisania w ten sposób?:<br />[syntax=c]#define KBD_OUT_INIT(PIN)KBD_OUT_DDR## PIN &amp;= ~(1&lt;&lt;KBD_OUT_PIN ## PIN); KBD_OUT_PORT ## PIN |=  (1&lt;&lt;KBD_OUT_PIN ## PIN)[/syntax]<br /><br />Przy takiej prostej definicji to nie problem ale jak się wprowadzi jakiś warunek 'if' i kilka linijek to jest niezły bałagan.<br /><br />Z góry dzięki<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=19707">MateuszS</a> — 24 wrz 2018, o 15:05</p><hr />
]]></content>
</entry>
</feed>