Assembly encapsulation in macros?
Posted: Mon Apr 26, 2010 7:41 pm
Is this code compliant with rule #2.1?
Code: Select all
#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. */
}