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

 A builtin macro, that expands to and integral constant similar to `__LINE__`, but instead of yielding the current line, it will yield the recursion depth of `#include` directives, that lead to the current preprocessor state.

&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:05:33 -0000</pubDate><guid>https://sourceforge.net6bc56a58bbc6732c9d3994bba5c894dffd01286e</guid></item><item><title>Include level macro modified by Cyder</title><link>https://sourceforge.net/p/typp/wiki/Include%2520level%2520macro/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;strong&gt;Include Level Macro&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Config: &lt;code&gt;#define TPP_CONFIG_HAVE___INCLUDE_DEPTH__ 0/1&lt;/code&gt;&lt;br/&gt;
Check: &lt;code&gt;#if defined(__INCLUDE_LEVEL__) || defined(__INCLUDE_DEPTH__)&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 the recursion depth of &lt;code&gt;#include&lt;/code&gt; directives, that lead to the current preprocessor state.&lt;/p&gt;
&lt;p&gt;Note: Before v105 only &lt;code&gt;__INCLUDE_LEVEL__&lt;/code&gt; got defined. To fix this, simply include the following code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;#if defined(__INCLUDE_LEVEL__) &amp;amp;&amp;amp; !defined(__INCLUDE_DEPTH__)
#define __INCLUDE_DEPTH__ __INCLUDE_LEVEL__
#endif
&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;/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:36:41 -0000</pubDate><guid>https://sourceforge.net99e23f97139aee246dd338e7e3b4e9134437c08d</guid></item></channel></rss>