"fall-through" errors
Bruce Korb
bruce.korb@gmail.com
Sat Jul 28 19:41:00 GMT 2018
On Sat, Jul 28, 2018 at 11:48 AM Jakub Jelinek <jakub@redhat.com> wrote:
> You don't need to use configure for this, something like:
> #ifdef __has_attribute
> #if __has_attribute(__noreturn__)
> #define NORETURN __attribute__((__noreturn__))
> #endif
....
OK. Thanks. It _will_ be a bit more complicated because my toy emits
headers for others to compile.
SO, more like:
#ifdef NORETURN
# define _AO_NoReturn NORETURN
#else
<<attribute stuff using _AO_NoReturn>>
#endif
and then emit headers with the _AO_NoReturn marker.
namespaces can be a nuisance.
More information about the Gcc
mailing list