Keith, It is certainly possible that bugs like this exist. I'm looking at embedding the new preprocessor core from the Antenna project which would hopefully fix problems like this. No guarantees on if/when I will get this done.
Craig Keith Bottner wrote: > I have just upgraded to the latest version of EclipseME and am trying to > update some very old projects to the latest version of the mobile device > kits and EclipseME. In the past we used antennae to preprocess the files and > now that EclipseME has that functionality built in we want to take advantage > of it. I have ran into several problems that I wanted to post here to see if > anyone else has seen these. > > Problem 1: You cannot nest preprocessing directives. > If I attempt to have a #ifdef or #ifndef with another #ifdef or #ifndef > nested within it then I get an error from the preprocessor saying "#elifdef > and #elifndef cannot be associated with #if" even thought I am not using an > #elifdef or #elifndef or #if. > > The solution to this is to un-nest the preprocessing directives, although it > makes everything quite a bit messy and have a more complex #if that checks > several preprocessing directives. This brings up problem # 2. > > Problem 2: If I use #if with variable1 && variable2 the code is always > compiled in. > > When I attempted to unroll the first thing I did was convert the #ifdef > variable1 and the nested #ifdef variable2 into, #if variable1 && variable2, > this does not work properly. Instead the code gives errors even though it > should not be compiled at all as per the directives. > > Does anybody have any idea on why the EclipseME preprocessing is working > this way? Is it broke? Have you seen this before Craig? > > Thanks in advance, good coding. > > Keith > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Eclipseme-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/eclipseme-users > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
