|
From: | grischka |
Subject: | Re: [Tinycc-devel] X(X(1)) (nested macro substitution) |
Date: | Fri, 29 Apr 2016 07:27:53 +0200 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Sergey Korshunoff wrote: ---
The recommendation is: Implementations should avoid imposing fixed translation limits whenever possible.Implemented adddition is a macro recursion detection: * on define macro stage (is the name of macro can be found in macro string)
Bad idea : #define A B #define B A return A + B;
* on macro call stage (is the name of macro can be found in args) If macro or call is not recursive then we don't block expansion. Behaviour is the same as gcc have. All tcc preprop test pass. A compilation speed is not changed.
[Prev in Thread] | Current Thread | [Next in Thread] |