26-04-2010, 06:41 PM
Is this code compliant with rule #2.1?
Code:
#define ASM_MACRO_1 asm { "abc" }
#define ASM_MACRO_2 asm { "xyz" }
extern void g();
void f( void )
{
ASM_MACRO_1; /* Do something in assembly. */
g(); /* Do something in C. */
ASM_MACRO_2; /* Do something in assembly. */
}