diff options
author | Taras Kondratiuk <taras.kondratiuk@linaro.org> | 2015-02-26 14:21:00 +0200 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-02-26 17:54:22 +0300 |
commit | c032bc382d6989ee8326f03303d9a67503c69739 (patch) | |
tree | 7ec479c7d0c2c04a83d6a978dccd443b5b8b1ad0 /include/odp | |
parent | d8b05a7e916738783651dd0e9aad0e31c32611e4 (diff) |
api: hints: move internal hints into a public header
It is useful to have ODP_UNUSED and ODP_DEPRECATED macros in a public
header. For example to mark some API as deprecated in future.
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Reviewed-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'include/odp')
-rw-r--r-- | include/odp/api/hints.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/odp/api/hints.h b/include/odp/api/hints.h index 4211994cd..ea67fc401 100644 --- a/include/odp/api/hints.h +++ b/include/odp/api/hints.h @@ -51,6 +51,16 @@ extern "C" { #define ODP_PRINTF_FORMAT(x, y) __attribute__((format(printf, (x), (y)))) /** + * Indicate deprecated variables, functions or types + */ +#define ODP_DEPRECATED __attribute__((__deprecated__)) + +/** + * Intentionally unused variables ot functions + */ +#define ODP_UNUSED __attribute__((__unused__)) + +/** * Branch likely taken */ #define odp_likely(x) __builtin_expect((x), 1) @@ -85,6 +95,8 @@ extern "C" { #define ODP_WEAK_SYMBOL #define ODP_HOT_CODE #define ODP_COLD_CODE +#define ODP_DEPRECATED +#define ODP_UNUSED #define odp_likely(x) #define odp_unlikely(x) #define odp_prefetch(x) |