diff options
author | Alexander Aksenov <a.aksenov@samsung.com> | 2016-04-13 12:19:28 +0300 |
---|---|---|
committer | Alexander Aksenov <a.aksenov@samsung.com> | 2016-04-19 19:30:47 +0300 |
commit | a8932f839a3311001dc85001232efe82eab06026 (patch) | |
tree | a2d6983d68409048bf2f81894babdfafded75646 | |
parent | 4b119dcbafd4e013ecb8fc6f9fe128d94d233e34 (diff) | |
download | swap-probe-a8932f839a3311001dc85001232efe82eab06026.tar.gz swap-probe-a8932f839a3311001dc85001232efe82eab06026.tar.bz2 swap-probe-a8932f839a3311001dc85001232efe82eab06026.zip |
[REFACTOR] Place all probes macro in the same header
Change-Id: I871eae18a09275cccc3e0e62c12f7f7abebe628c
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
-rw-r--r-- | include/api_names_global.h | 4 | ||||
-rw-r--r-- | include/daprobe.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/api_names_global.h b/include/api_names_global.h index ceb8557..08d39e4 100644 --- a/include/api_names_global.h +++ b/include/api_names_global.h @@ -1,6 +1,10 @@ #ifndef __API_NAMES_GLOBAL_H__ #define __API_NAMES_GLOBAL_H__ +#define GET_VALUE_2(x,y) x##y +#define GET_VALUE_1(x,y) GET_VALUE_2(x, y) +#define PROBE_NAME(func) GET_VALUE_1(PROBE_NAME_PREFIX, func) + #define PROBE_NAME_PREFIX __PROBE__ #endif diff --git a/include/daprobe.h b/include/daprobe.h index 7df1a61..2477d2b 100644 --- a/include/daprobe.h +++ b/include/daprobe.h @@ -45,10 +45,6 @@ extern "C"{ #endif -#define GET_VALUE_2(x,y) x##y -#define GET_VALUE_1(x,y) GET_VALUE_2(x, y) -#define PROBE_NAME(func) GET_VALUE_1(PROBE_NAME_PREFIX, func) - #ifndef likely #define likely(x) __builtin_expect((x),1) #define unlikely(x) __builtin_expect((x),0) |