#5211 - SmileyDude - Wed Apr 23, 2003 8:00 am
Hey everyone -- hopefully, this is an easy question :)
I'm using the GNU CPP with my assembly files, so I can get things like #define, #ifdef, etc, etc from my .S files. I'm trying to put together a common gba.h file that I can use for both assembly and C/C++ code, but I need to be able to tell if I am #included from a .S or a .c file -- is there anything I can #ifdef for that would tell me that I'm being included from a .S file?
As a workaround, I can just do the kludge of #define __ASSEMBLY__ before including my header file, but I would prefer to have this automated if possible...
_________________
dennis
I'm using the GNU CPP with my assembly files, so I can get things like #define, #ifdef, etc, etc from my .S files. I'm trying to put together a common gba.h file that I can use for both assembly and C/C++ code, but I need to be able to tell if I am #included from a .S or a .c file -- is there anything I can #ifdef for that would tell me that I'm being included from a .S file?
As a workaround, I can just do the kludge of #define __ASSEMBLY__ before including my header file, but I would prefer to have this automated if possible...
_________________
dennis