[m-rev.] diff: Escape backslashes in foreign code.
Paul Bone
paul at bone.id.au
Fri Jul 18 14:57:34 AEST 2014
Branches: master
Escape backslashes in foreign code.
library/version_array.m:
Escape backslashes in foreign code so that gcc and gdb give us
meaningful line numbers.
---
library/version_array.m | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/library/version_array.m b/library/version_array.m
index 918a18e..fdfb047 100644
--- a/library/version_array.m
+++ b/library/version_array.m
@@ -1035,18 +1035,18 @@ ML_va_resize(ML_va_ptr, MR_Integer, MR_Word, MR_AllocSiteInfoPtr);
#define ML_va_latest_version(VA) ((VA)->index == -1)
#ifdef MR_THREAD_SAFE
- #define ML_maybe_lock(lock) \
- do { \
- if (lock) { \
- MR_LOCK(lock, ""ML_maybe_lock""); \
- } \
+ #define ML_maybe_lock(lock) \\
+ do { \\
+ if (lock) { \\
+ MR_LOCK(lock, ""ML_maybe_lock""); \\
+ } \\
} while (0)
- #define ML_maybe_unlock(lock) \
- do { \
- if (lock) { \
- MR_UNLOCK(lock, ""ML_maybe_unlock""); \
- } \
+ #define ML_maybe_unlock(lock) \\
+ do { \\
+ if (lock) { \\
+ MR_UNLOCK(lock, ""ML_maybe_unlock""); \\
+ } \\
} while (0)
#else
#define ML_maybe_lock(lock) ((void) 0)
--
2.0.0
More information about the reviews
mailing list