#25841 - ProblemBaby - Sun Aug 29, 2004 12:20 pm
Iam using both c and asm in my project.
My gba.h file contains a lot of register flags but also C-structures
so It cant be included by a .S-file.
Does it exist a compilator directive to see if it is a C or S file that includes the header.
Something like this:
flags
#if C_CODE
struct...
#endif
#if ASM_CODE
.byte...
#endif
I would be comfortable!
and then I wonder how to make a function prototype in asm.
My gba.h file contains a lot of register flags but also C-structures
so It cant be included by a .S-file.
Does it exist a compilator directive to see if it is a C or S file that includes the header.
Something like this:
flags
#if C_CODE
struct...
#endif
#if ASM_CODE
.byte...
#endif
I would be comfortable!
and then I wonder how to make a function prototype in asm.