tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] __has_include() ?


From: Thiago Adams
Subject: Re: [Tinycc-devel] __has_include() ?
Date: Thu, 20 Apr 2023 07:21:36 -0300

C23 _has_embed is very similar. (in case someone wants to add it too)
Complements C23 #embed

> On 20 Apr 2023, at 06:31, Ziyao via Tinycc-devel <tinycc-devel@nongnu.org> 
> wrote:
> 
> On 2023-04-20 03:41, Bernhard Reutner-Fischer wrote:
>> I don't think we have it yet, do we?
>> Thoughts? Any takers?
> 
> We do have it already.
> 
> #if __has_include("/dev/null") && !__has_include("StRanGeNamE")
> #define a
> #endif
> 
> int main()
> {
>        a
>        return 0;
> }
> 
> could be compiled and run without an error.
> 
> Grepping the commit log also proves that.
> 
> -- 
> Ziyao
> 
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel



reply via email to

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