[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] __has_include() ?
From: |
certanan |
Subject: |
Re: [Tinycc-devel] __has_include() ? |
Date: |
Thu, 20 Apr 2023 10:54:10 +0000 |
I'd like to take a look at it, but only if there aren't any other takers; I
have loads of exams coming up in the next few months so implementing it might
take me a while.
-- certanan
------- Original Message -------
On Thursday, April 20th, 2023 at 10:21 AM, Thiago Adams
<thiago.adams@gmail.com> wrote:
> 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
>
>
> _______________________________________________
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel