summaryrefslogtreecommitdiff
path: root/tools/m4/class_gobject.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tools/m4/class_gobject.m4')
-rw-r--r--tools/m4/class_gobject.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/m4/class_gobject.m4 b/tools/m4/class_gobject.m4
index 0e0e4f6e..86359460 100644
--- a/tools/m4/class_gobject.m4
+++ b/tools/m4/class_gobject.m4
@@ -19,6 +19,8 @@ dnl the problem by supporting optional __REAL_* arguments to this macro.
define(`__REAL_CNAME__',ifelse(`$6',,__CNAME__,`$6'))
define(`__REAL_CPARENT__',ifelse(`$7',,__CPARENT__,`$7'))
+dnl $8 is for the optional api_decoration used for import/export
+define(`__FUNC_DECORATION__',`$8')
_POP()
_SECTION(SECTION_CLASS2)
@@ -124,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)
@@ -141,6 +143,7 @@ namespace Glib
*
* @relates __NAMESPACE__::__CPPNAME__
*/
+ __FUNC_DECORATION__
Glib::RefPtr<__NAMESPACE__::__CPPNAME__> wrap(__REAL_CNAME__`'* object, bool take_copy = false);
}
')dnl