drd/tests: Fix remaining gcc 8 compiler warnings
[valgrind.git] / tests / asm.h
blobe2c2524ed3e66f953d45f7c859f16bb6bd938153
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
10 #else
11 #define VG_SYM(x) #x
12 #endif
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