summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-11-22 11:08:06 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-11-22 12:13:21 +0000
commitc90f5c66512f35025d7ecc6ad5eae9ccef6c1290 (patch)
tree192bdb941b5b057b5c5c3e32bcbebe5b0bf273d2 /sal
parent0a14f43e69112073dd093ad26520527754feb9de (diff)
create SAL_DEPRECATED_INTERNAL for annotating API
It flags methods that we don't want used externally, but havn't finished removing internally. Change-Id: I818ee0ea2bf5294be816256a0e7f1868f26806b8
Diffstat (limited to 'sal')
-rw-r--r--sal/inc/sal/types.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h
index 2c7a2cf42ce9..3e3dc7c3cdcd 100644
--- a/sal/inc/sal/types.h
+++ b/sal/inc/sal/types.h
@@ -445,6 +445,21 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) {
#endif
/**
+ This macro is used to tag interfaces that are deprecated for both
+ internal and external API users, but where we are still writing
+ out the internal usage. Ultimately these should be replaced by
+ SAL_DEPRECATED, and then removed.
+
+ Use as follows:
+ SAL_DEPRECATED_INTERNAL("Dont use, its evil.") void doit(int nPara);
+ */
+#ifdef LIBO_INTERNAL_ONLY
+# define SAL_DEPRECATED_INTERNAL(message)
+#else
+# define SAL_DEPRECATED_INTERNAL(message) SAL_DEPRECATED(message)
+#endif
+
+/**
Use as follows:
SAL_WNODEPRECATED_DECLARATIONS_PUSH
\::std::auto_ptr<X> ...