aboutsummaryrefslogtreecommitdiff
path: root/tests/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/asm.h')
-rw-r--r--tests/asm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/asm.h b/tests/asm.h
index 99f9cc5a5..e2c2524ed 100644
--- a/tests/asm.h
+++ b/tests/asm.h
@@ -5,7 +5,15 @@
// general, any symbol named in asm code should be wrapped by VG_SYM.
// This one is for use in inline asm in C files.
+#if defined(VGO_darwin)
+#define VG_SYM(x) "_"#x
+#else
#define VG_SYM(x) #x
+#endif
// This one is for use in asm files.
+#if defined(VGO_darwin)
+#define VG_SYM_ASM(x) _##x
+#else
#define VG_SYM_ASM(x) x
+#endif