Re: availability of "typeof" keyword

From: Arkadiy (vertleyb_at_hotmail.com)
Date: 09/29/05


Date: 29 Sep 2005 01:38:10 -0700


Marty Freitas wrote:
> Arkadiy wrote: not in a
> : How does a user of HP aC++ determines whether the typeof (or
> : __typeof__) keyword is available? Is there any symbol defined that can
> : be tested?
>
> aC++ on PA doesn't support it. But PA HPC does, at least with __HP_cc=111108.
>
> : Is there anything similar in HP aC++?
>
> For aCC6, you can use -Agcc to support it.
> For A.06.05, _HP_GNUC_COMPATIBLE is defined with that option.

So, is it safe to go like this for any version of aC++, regardless of
what command-line options have been supplied:

#ifdef _HP_GNUC_COMPATIBLE
// can use typeof (or __typeof__?)
#else
// no typeof
#endif

Thanks,
Arkadiy



Relevant Pages

  • Re: availability of "typeof" keyword
    ... Arkadiy wrote: ... is it safe to go like this for any version of aC++, regardless of ... : what command-line options have been supplied: ...
    (comp.sys.hp.hpux)
  • Re: You have the Right to Drive Safely
    ... regardless of any physical limitations. ... One may only exercise their Rights in a safe ... exercising the right to drive in a manner which is safe? ... of age or physical limitations, who can reach the controls, is ...
    (rec.autos.driving)
  • Re: How about a senior moment with John McCain?
    ... and a woman's right to choose a safe and legal abortion, ... regardless of ability to pay, and we oppose any and all efforts ...
    (rec.boats)
  • Re: How about a senior moment with John McCain?
    ... and a woman's right to choose a safe and legal abortion, ... regardless of ability to pay, and we oppose any and all efforts ...
    (rec.boats)
  • Re: 4x4s, lets have a heated debate :-)
    ... know the essentials of safe 4 x 4 driving from a previous life (though ... Regardless of the type of vehicle my personal preference would be for ...
    (uk.rec.scouting)