<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Token concat</title><link>https://sourceforge.net/p/typp/wiki/Token%2520concat/</link><description>Recent changes to Token concat</description><atom:link href="https://sourceforge.net/p/typp/wiki/Token%20concat/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 07 Jan 2016 10:51:14 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/typp/wiki/Token%20concat/feed" rel="self" type="application/rss+xml"/><item><title>Token concat modified by Cyder</title><link>https://sourceforge.net/p/typp/wiki/Token%2520concat/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Token Concat&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Commonly known as the ## (Hash-Hash) operator, it can be used, to erase whitespace between 2 tokens.&lt;br/&gt;
Please note, that TPP has stricter rules for where the operator is allowed, only allowing it in macro function, where at least one operand of the operator is a function parameter and the other being an identifier or integral constant.&lt;/p&gt;
&lt;p&gt;Note, that similar to the Stringize operator, function arguments are not expanded before concantation.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;#define CAT(a,b) a ## b
#define CAT_(x) _ ## x
#define NO_CAT() 10 ## 20
#define CAT_2(a,b) CAT(a,b)

#define foo 42

CAT(10,20) // Expands to [1020]
CAT_2(foo,00) // Expands to [4200]
CAT_(foo) // Expands to [_foo]
NO_CAT() // Expands to [10][ ][##][ ][20]
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;s.a. &lt;a class="alink" href="/p/typp/wiki/Bracket%20notation/"&gt;[Bracket notation]&lt;/a&gt;&lt;br/&gt;
s.a. &lt;a class="alink" href="/p/typp/wiki/Stringize%20operator/"&gt;[Stringize operator]&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cyder</dc:creator><pubDate>Thu, 07 Jan 2016 10:51:14 -0000</pubDate><guid>https://sourceforge.net6e8bed430fb70e7b35780b76f42a34c4136cd5f6</guid></item></channel></rss>