[GCC-XML] -DGCCXML ?

Guy Barrand barrand at lal.in2p3.fr
Mon Dec 12 04:01:35 EST 2005


Le 9 déc. 05, à 19:03, Brad King a écrit :

   Hello Brad

> Guy Barrand wrote:
>> Is there some buit in cpp macro for gccxml itself, like __GNUC__
>> for g++, _MSC_VER for VisualC++, etc... ?
>> In some situation, it would be usefull to have some _GCCXML_ one...
>
> __GCCXML__

  Huum. I have gccxml 0.6.0 and clearly :

    gccxml Xxx.h -fxml=out.xml

with a Xxx.h having :

  #ifdef __GCCXML__

   class Xxx {
   public:
      Xxx(){}
   };

  #endif

  does not pick the Xxx class....

   Obviously : gccxml Xxx.h -fxml=out.xml -D__GCCXML__
does the job ; but it is not what I meant by a "builtin" __GCCXML__ 
macro.
I would expect the first case to have picked the Xxx class...

   Have I missed something ?

     Regards


>
> -Brad
>
     Guy

-------------------------------------------------------------
Guy Barrand. eXtreme debugger.
   LAL
   Universite de Paris-Sud
   B.P 34
   91898 ORSAY CEDEX France

e-mail: barrand at lal.in2p3.fr
Tel: +33 (1) 64 46 84 17
Fax: +33 (1) 69 07 94 04

office at cern: B01-R001
Tel at cern: 41 22 76 72335

http://OpenScientist.lal.in2p3.fr
-------------------------------------------------------------




More information about the gccxml mailing list