summaryrefslogtreecommitdiff
path: root/lib/interception/interception.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-28 08:07:19 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-28 08:07:19 +0000
commitba362a7f0e98b369758f07aec8794c61e688b82d (patch)
tree42a731913a2326ba14ff3ab3da3abd79b17100c1 /lib/interception/interception.h
parentd51a1a10cba87be50e9ada9fa21337c387edb237 (diff)
[Sanitizer] fight more semicolons in macro definitions (to please mac cmake build)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/interception.h')
-rw-r--r--lib/interception/interception.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/interception/interception.h b/lib/interception/interception.h
index ab4c9edd5..84cceb0f5 100644
--- a/lib/interception/interception.h
+++ b/lib/interception/interception.h
@@ -98,7 +98,7 @@
# define INTERCEPTOR_ATTRIBUTE __attribute__((visibility("default")))
# define DECLARE_WRAPPER(ret_type, convention, func, ...) \
extern "C" ret_type convention func(__VA_ARGS__) \
- __attribute__((weak, alias("__interceptor_" #func), visibility("default")))
+ __attribute__((weak, alias("__interceptor_" #func), visibility("default")));
#endif
#define PTR_TO_REAL(x) real_##x
@@ -112,7 +112,7 @@
}
#define DECLARE_REAL_AND_INTERCEPTOR(ret_type, func, ...) \
- DECLARE_REAL(ret_type, func, ##__VA_ARGS__); \
+ DECLARE_REAL(ret_type, func, ##__VA_ARGS__) \
extern "C" ret_type WRAP(func)(__VA_ARGS__);
// FIXME(timurrrr): We might need to add DECLARE_REAL_EX etc to support
@@ -131,11 +131,11 @@
#define DEFAULT_CONVENTION
#define DEFINE_REAL(ret_type, func, ...) \
- DEFINE_REAL_EX(ret_type, DEFAULT_CONVENTION, func, __VA_ARGS__);
+ DEFINE_REAL_EX(ret_type, DEFAULT_CONVENTION, func, __VA_ARGS__)
#define INTERCEPTOR_EX(ret_type, convention, func, ...) \
DEFINE_REAL_EX(ret_type, convention, func, __VA_ARGS__) \
- DECLARE_WRAPPER(ret_type, convention, func, __VA_ARGS__); \
+ DECLARE_WRAPPER(ret_type, convention, func, __VA_ARGS__) \
extern "C" \
INTERCEPTOR_ATTRIBUTE \
ret_type convention WRAP(func)(__VA_ARGS__)