[Top][All Lists]

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

Re: [PATCH] stdnoreturn: new module

From: Paul Eggert
Subject: Re: [PATCH] stdnoreturn: new module
Date: Tue, 28 Feb 2012 00:45:04 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 02/27/2012 06:29 PM, Bruno Haible wrote:
> The current set of definitions
>   #define _Noreturn __declspec (noreturn)
>   #define noreturn _Noreturn
> leads to a syntax error when someone writes  __declspec (noreturn),
> because preprocessing transforms it to  __declspec (__declspec (noreturn)).
> How can this syntax error be avoided?

I don't see any reasonable way to do it.
Perhaps we should just document that <stdnoreturn.h> is
incompatible with MSVC, unless it is included after all
system include files (yuck!).

reply via email to

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