saai
10-12-2000, 10:51 PM
I would like to be able to pass a #define to all of my files in my current project through the command line (maybe using gcc/g++, or make?), instead of putting the #define in an actual file.
Does anyone know how to do this?
I have made a debug logging function that i only want included when im doing debug stuff - being able to add a #define to my files when i run gcc/g++ would be great.
Thanks a lot,
saai
Does anyone know how to do this?
I have made a debug logging function that i only want included when im doing debug stuff - being able to add a #define to my files when i run gcc/g++ would be great.
Thanks a lot,
saai