[glibmm] m4: Apply function decoration more thoroughly
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] m4: Apply function decoration more thoroughly
- Date: Mon, 9 Mar 2020 07:54:40 +0000 (UTC)
commit 7d361627864dac92da3865387b0901493d8905ad
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 9 15:49:08 2020 +0800
m4: Apply function decoration more thoroughly
Apparently more items in the generated code must be marked with the
function decoration that is specified, otherwise the exported symbols
will not be complete.
tools/m4/class_boxedtype.m4 | 2 +-
tools/m4/class_boxedtype_static.m4 | 2 +-
tools/m4/class_gobject.m4 | 2 +-
tools/m4/class_interface.m4 | 2 +-
tools/m4/class_opaque_refcounted.m4 | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tools/m4/class_boxedtype.m4 b/tools/m4/class_boxedtype.m4
index 73df2fae..a31f1f0a 100644
--- a/tools/m4/class_boxedtype.m4
+++ b/tools/m4/class_boxedtype.m4
@@ -86,7 +86,7 @@ __NAMESPACE__::__CPPNAME__ wrap(__CNAME__* object, bool take_copy = false);
#ifndef DOXYGEN_SHOULD_SKIP_THIS
template <>
-class Value<__NAMESPACE__::__CPPNAME__> : public Glib::Value_Boxed<__NAMESPACE__::__CPPNAME__>
+class __BOXEDTYPE_FUNC_DECORATION Value<__NAMESPACE__::__CPPNAME__> : public
Glib::Value_Boxed<__NAMESPACE__::__CPPNAME__>
{};
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
diff --git a/tools/m4/class_boxedtype_static.m4 b/tools/m4/class_boxedtype_static.m4
index f9c98fff..bbb34411 100644
--- a/tools/m4/class_boxedtype_static.m4
+++ b/tools/m4/class_boxedtype_static.m4
@@ -67,7 +67,7 @@ const __NAMESPACE__::__CPPNAME__& wrap(const __CNAME__* object);
#ifndef DOXYGEN_SHOULD_SKIP_THIS
template <>
-class Value<__NAMESPACE__::__CPPNAME__> : public Glib::Value_Boxed<__NAMESPACE__::__CPPNAME__>
+class __FUNC_DECORATION__ Value<__NAMESPACE__::__CPPNAME__> : public
Glib::Value_Boxed<__NAMESPACE__::__CPPNAME__>
{};
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
diff --git a/tools/m4/class_gobject.m4 b/tools/m4/class_gobject.m4
index 25feb630..bcf0572c 100644
--- a/tools/m4/class_gobject.m4
+++ b/tools/m4/class_gobject.m4
@@ -126,7 +126,7 @@ _STRUCT_PROTOTYPE()
')dnl
#ifndef DOXYGEN_SHOULD_SKIP_THIS
-__NAMESPACE_BEGIN__ class __CPPNAME__`'_Class; __NAMESPACE_END__
+__NAMESPACE_BEGIN__ class __FUNC_DECORATION__ __CPPNAME__`'_Class; __NAMESPACE_END__
#endif //DOXYGEN_SHOULD_SKIP_THIS
_SECTION(SECTION_HEADER3)
diff --git a/tools/m4/class_interface.m4 b/tools/m4/class_interface.m4
index dbcdfdf3..2ee0aff4 100644
--- a/tools/m4/class_interface.m4
+++ b/tools/m4/class_interface.m4
@@ -120,7 +120,7 @@ _SECTION(SECTION_HEADER1)
_STRUCT_PROTOTYPE()
#ifndef DOXYGEN_SHOULD_SKIP_THIS
-__NAMESPACE_BEGIN__ class __CPPNAME__`'_Class; __NAMESPACE_END__
+__NAMESPACE_BEGIN__ class __FUNC_DECORATION__ __CPPNAME__`'_Class; __NAMESPACE_END__
#endif // DOXYGEN_SHOULD_SKIP_THIS
_SECTION(SECTION_HEADER3)
diff --git a/tools/m4/class_opaque_refcounted.m4 b/tools/m4/class_opaque_refcounted.m4
index 87670dbc..544f772e 100644
--- a/tools/m4/class_opaque_refcounted.m4
+++ b/tools/m4/class_opaque_refcounted.m4
@@ -63,7 +63,7 @@ Glib::RefPtr<__NAMESPACE__::__CPPNAME__> wrap(__CNAME__* object, bool take_copy
ifdef(`__OPAQUE_FUNC_GTYPE__',`dnl
#ifndef DOXYGEN_SHOULD_SKIP_THIS
template <>
-class Value<Glib::RefPtr<__NAMESPACE__::__CPPNAME__>> : public
Glib::Value_RefPtrBoxed<__NAMESPACE__::__CPPNAME__>
+class __OPAQUE_FUNC_DECORATION Value<Glib::RefPtr<__NAMESPACE__::__CPPNAME__>> : public
Glib::Value_RefPtrBoxed<__NAMESPACE__::__CPPNAME__>
{
public:
CppType get() const { return Glib::wrap(static_cast<__CNAME__*>(get_boxed()), true); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]