1 // Header to factor out platform differences in asm code.
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.
7 // This one is for use in inline asm in C files.
8 #if defined(VGO_darwin)
9 #define VG_SYM(x) "_"#x
14 // This one is for use in asm files.
15 #if defined(VGO_darwin)
16 #define VG_SYM_ASM(x) _##x
18 #define VG_SYM_ASM(x) x