Hi,
the code for the preprocessor is here:
http://code.google.com/p/arduino/source/browse/trunk/app/src/processing/app/preproc/PdePreprocessor.javaCould you post your class code (or better an abbreviated example)?
You find the preprocessed output in the build dir of the sketch.
Compile the sketch while holding down the Shift-Key.
In the generated output you should see something like
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=18 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/wayoda/sketchbook/libraries/DogLcd -I/home/wayoda/sketchbook/libraries/DogLcd/utility /home/wayoda/sketchbook/libraries/DogLcd/DogLcd.cpp -o/tmp/build5471887903982210197.tmp/DogLcd/DogLcd.cpp.o
avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=18 -I/usr/share/arduino/hardware/arduino/cores/arduino -I/home/wayoda/sketchbook/libraries/DogLcd /tmp/build5471887903982210197.tmp/blues.cpp -o/tmp/build5471887903982210197.tmp/blues.cpp.o
avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -o /tmp/build5471887903982210197.tmp/blues.cpp.elf /tmp/build5471887903982210197.tmp/DogLcd/DogLcd.cpp.o /tmp/build5471887903982210197.tmp/blues.cpp.o /tmp/build5471887903982210197.tmp/core.a -L/tmp/build5471887903982210197.tmp -lm
avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /tmp/build5471887903982210197.tmp/blues.cpp.elf /tmp/build5471887903982210197.tmp/blues.cpp.eep
avr-objcopy -O ihex -R .eeprom /tmp/build5471887903982210197.tmp/blues.cpp.elf
What you are looking for is the
/tmp/build5471887903982210197.tmp/
part. This is the directory (starting with /build) where the preprocessed files are written and compiled files are saved temporarily.
The file named <NameOfYourSketch>.cpp contains the preprocessed code.
The directory (and files) are deleted when the IDE exits, so you have to look at the files while the IDE is still running.
Eberhard