I understand better the problem, but it's annoying when you start using semantic with a library like OSG which use OSG_EXPORT macro in each class declaration and you don't know why it fails.

Anyway, Thanks for all


2009/1/8 Eric M. Ludlam <eric@siege-engine.com>
>>> "cabieces julien" <jcabieces@free.fr> seems to think that:
>It works!
>
>For those who encounter a similar problem, I add to my .emacs file :
>(add-to-list 'semantic-lex-c-preprocessor-symbol-file
>"~/work/depends/OpenSceneGraph-2.7.4/include/osg/Export" )
>
>where Export contains all the macro I want.
>
>Now OSG integration seems to works fine but It's quite a pity that semantic
>doesn't manage to retrieve the macro by itself.
 [ ... ]

Good news on your stuff working now!

I think you'd be surprised at how slow things would be if all the
header files had to be referenced in order to reparse the buffer.  In
particular, the various tables header file would have to be reparsed
on a per-included basis based on possible input macros.  I'm pretty
sure that if it were an option, you would turn it off. :)

Eric

--
         Eric Ludlam:                       eric@siege-engine.com
  Siege: www.siege-engine.com          Emacs: http://cedet.sourceforge.net