tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] X(X(1)) (nested macro substitution)


From: Vincent Lefevre
Subject: Re: [Tinycc-devel] X(X(1)) (nested macro substitution)
Date: Fri, 29 Apr 2016 03:27:22 +0200
User-agent: Mutt/1.6.0-6623-vl-r87826 (2016-04-14)

On 2016-04-29 00:50:59 +0000, Michael B. Smith wrote:
> Don't you think it might it be a good idea to limit the possible
> level of recursion?

It seems that the standard doesn't provide a minimum limit for macro
recursion. But it general, this is 63 nesting levels of [...].

> I don't have time to look at the C99 standard right now, but I'd be
> surprised if there weren't a recommendation on this.

The recommendation is:

  Implementations should avoid imposing fixed translation limits
  whenever possible.

-- 
Vincent Lefèvre <address@hidden> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]