summaryrefslogtreecommitdiff
path: root/include/cppuhelper/implbase_ex.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppuhelper/implbase_ex.hxx')
-rw-r--r--include/cppuhelper/implbase_ex.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cppuhelper/implbase_ex.hxx b/include/cppuhelper/implbase_ex.hxx
index e9d871a0c01f..efbe8dc2af7e 100644
--- a/include/cppuhelper/implbase_ex.hxx
+++ b/include/cppuhelper/implbase_ex.hxx
@@ -66,6 +66,11 @@ struct type_entry
sal_IntPtr m_offset;
};
+/** in the future, this can be a constexpr template method */
+#define CPPUHELPER_DETAIL_TYPEENTRY(Ifc) \
+ { { Ifc::static_type }, \
+ reinterpret_cast<sal_IntPtr>( static_cast<Ifc *>( reinterpret_cast<Impl *>(16) )) - 16 }
+
/** identical dummy struct for casting class_dataN to class_data
*/
struct class_data