<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Counter macro</title><link>https://sourceforge.net/p/typp/wiki/Counter%2520macro/</link><description>Recent changes to Counter macro</description><atom:link href="https://sourceforge.net/p/typp/wiki/Counter%20macro/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 07 Jan 2016 13:03:41 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/typp/wiki/Counter%20macro/feed" rel="self" type="application/rss+xml"/><item><title>Counter macro modified by Cyder</title><link>https://sourceforge.net/p/typp/wiki/Counter%2520macro/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -3,6 +3,7 @@
 Config: `#define TPP_CONFIG_HAVE___COUNTER__ 0/1`
 Check: `#if defined(__COUNTER__)`
 Function: `tpp.c: TPPLexer_Next`
+Known supporting compilers: *vc, gcc, clang*

 A builtin macro, that expands to and integral constant similar to `__LINE__`, but instead of yielding the current line, it will yield an ever-incrementing number, that starts at 0 when the lexer is initialized.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Cyder</dc:creator><pubDate>Thu, 07 Jan 2016 13:03:41 -0000</pubDate><guid>https://sourceforge.netccd50a4030dcb7e6580b2dd22a28675407779e57</guid></item><item><title>Counter macro modified by Cyder</title><link>https://sourceforge.net/p/typp/wiki/Counter%2520macro/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Counter Macro&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Config: &lt;code&gt;#define TPP_CONFIG_HAVE___COUNTER__ 0/1&lt;/code&gt;&lt;br/&gt;
Check: &lt;code&gt;#if defined(__COUNTER__)&lt;/code&gt;&lt;br/&gt;
Function: &lt;code&gt;tpp.c: TPPLexer_Next&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;A builtin macro, that expands to and integral constant similar to &lt;code&gt;__LINE__&lt;/code&gt;, but instead of yielding the current line, it will yield an ever-incrementing number, that starts at 0 when the lexer is initialized.&lt;/p&gt;
&lt;p&gt;The following example show the counter macro expanding to different values every time it is called.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;// Assuming begin of preprocessor file
__COUNTER__ // Expands to [0]
__COUNTER__ // Expands to [1]
__COUNTER__ // Expands to [2]
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;s.a. &lt;a class="alink" href="/p/typp/wiki/Line%20macro/"&gt;[Line macro]&lt;/a&gt;&lt;br/&gt;
s.a. &lt;a class="alink" href="/p/typp/wiki/Bracket%20notation/"&gt;[Bracket notation]&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 12:29:48 -0000</pubDate><guid>https://sourceforge.net454a26dbf21d97a5c885cdcd4f8a560dff4a3fd8</guid></item></channel></rss>