1 // Header to factor out platform differences in asm code. 2 3 // On Darwin, all symbols get an underscore prepended when compiled. If we 4 // use any such symbols in asm code, we need to add that underscore. So in 5 // general, any symbol named in asm code should be wrapped by VG_SYM. 6 7 // This one is for use in inline asm in C files. 8 #if defined(VGO_darwin) 9 #define VG_SYM(x) "_"#x 10 #else 11 #define VG_SYM(x) #x 12 #endif 13 14 // This one is for use in asm files. 15 #if defined(VGO_darwin) 16 #define VG_SYM_ASM(x) _##x 17 #else 18 #define VG_SYM_ASM(x) x 19 #endif 20