The preprocessor operated on a per file level.

when EclipseME calls it, it calls it with the data of a single file.

if your defines have meaning outside that file, I suggest that you use
the //#expand directive to create constants.

something like:


// Ensure that FOOBAR is defined:


//#ifndef FOOBAR

//#define FOOBAR = 12

//#endif


//#expand public final static int X = FOOBAR;


the last bit will create the line

public final static int X = 12;

right below it.




Ed Welch wrote:

> I agree with you, doing it a different way would be a better option.
> The easiest is if you could just do just define the symbols in the
> souce code once using #define.
> Currently #define doesn't work properly. Seems like you have to repeat
> the defines in each file in the project
>
>
> On 9/13/07, *Craig Setera* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Riddled?  Yikes.
>
>     I am aware that it isn't perfect.  I'm currently pondering other
>     options.  As always, bug fix patches are welcome <grin>
>
>     Ed Welch wrote:
>     > I suppose you know already that the symbol set definitions
>     dialog is
>     > bug riddled
>     >
>     ------------------------------------------------------------------------
>     >
>     >
>     -------------------------------------------------------------------------
>     > This SF.net email is sponsored by: Microsoft
>     > Defy all challenges. Microsoft(R) Visual Studio 2005.
>     > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>     >
>     ------------------------------------------------------------------------
>
>     >
>     > _______________________________________________
>     > Eclipseme-users mailing list
>     > [email protected]
>     <mailto:[email protected]>
>     > https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>     >
>
>     -------------------------------------------------------------------------
>     This SF.net email is sponsored by: Microsoft
>     Defy all challenges. Microsoft(R) Visual Studio 2005.
>     http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>     _______________________________________________
>     Eclipseme-users mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to