glibmm r798 - branches/glibmm-2-14 branches/glibmm-2-14/tools/m4 branches/glibmm-2-16 branches/glibmm-2-16/tools/m4 branches/glibmm-2-18 branches/glibmm-2-18/tools/m4 trunk trunk/tools/m4



Author: jaalburqu
Date: Fri Mar 20 22:08:01 2009
New Revision: 798
URL: http://svn.gnome.org/viewvc/glibmm?rev=798&view=rev

Log:
2009-03-19  Josà Alburquerque  <jaalburqu svn gnome org>

	* tools/m4/class_gobject.m4: Added _CUSTOM_CTOR_CAST to _CLASS_GOBJECT
	for classes that need to include custom code in their cast and
	construct_params constructors as is done with _CLASS_GTKOBJECT.

Modified:
   branches/glibmm-2-14/ChangeLog
   branches/glibmm-2-14/tools/m4/class_gobject.m4
   branches/glibmm-2-16/ChangeLog
   branches/glibmm-2-16/tools/m4/class_gobject.m4
   branches/glibmm-2-18/ChangeLog
   branches/glibmm-2-18/tools/m4/class_gobject.m4
   trunk/ChangeLog
   trunk/tools/m4/class_gobject.m4

Modified: branches/glibmm-2-14/tools/m4/class_gobject.m4
==============================================================================
--- branches/glibmm-2-14/tools/m4/class_gobject.m4	(original)
+++ branches/glibmm-2-14/tools/m4/class_gobject.m4	Fri Mar 20 22:08:01 2009
@@ -32,6 +32,15 @@
 _POP()
 ')
 
+dnl For classes that need custom code in their cast and construct_params
+dnl constructor.
+define(`_CUSTOM_CTOR_CAST',`dnl
+_PUSH()
+dnl Define this macro to be tested for later.
+define(`__BOOL_CUSTOM_CTOR_CAST__',`$1')
+_POP()
+')
+
 dnl Gdk::Pixmap_Class::wrap_new() needs a custom implementation, in order
 dnl to create a Gdk::Bitmap object if appropriate.  See comments there.
 define(`_CUSTOM_WRAP_NEW',`dnl
@@ -169,6 +178,8 @@
   return gobj();
 }
 
+ifdef(`__BOOL_CUSTOM_CTOR_CAST__',`dnl
+',`dnl
 __CPPNAME__::__CPPNAME__`'(const Glib::ConstructParams& construct_params)
 :
   __CPPPARENT__`'(construct_params)
@@ -181,6 +192,8 @@
   __CPPPARENT__`'(__PCAST__`'(castitem))
 {}
 
+')dnl
+
 ifdef(`__BOOL_CUSTOM_DTOR__',`dnl
 ',`dnl
 __CPPNAME__::~__CPPNAME__`'()

Modified: branches/glibmm-2-16/tools/m4/class_gobject.m4
==============================================================================
--- branches/glibmm-2-16/tools/m4/class_gobject.m4	(original)
+++ branches/glibmm-2-16/tools/m4/class_gobject.m4	Fri Mar 20 22:08:01 2009
@@ -32,6 +32,15 @@
 _POP()
 ')
 
+dnl For classes that need custom code in their cast and construct_params
+dnl constructor.
+define(`_CUSTOM_CTOR_CAST',`dnl
+_PUSH()
+dnl Define this macro to be tested for later.
+define(`__BOOL_CUSTOM_CTOR_CAST__',`$1')
+_POP()
+')
+
 dnl Gdk::Pixmap_Class::wrap_new() needs a custom implementation, in order
 dnl to create a Gdk::Bitmap object if appropriate.  See comments there.
 define(`_CUSTOM_WRAP_NEW',`dnl
@@ -169,6 +178,8 @@
   return gobj();
 }
 
+ifdef(`__BOOL_CUSTOM_CTOR_CAST__',`dnl
+',`dnl
 __CPPNAME__::__CPPNAME__`'(const Glib::ConstructParams& construct_params)
 :
   __CPPPARENT__`'(construct_params)
@@ -181,6 +192,8 @@
   __CPPPARENT__`'(__PCAST__`'(castitem))
 {}
 
+')dnl
+
 ifdef(`__BOOL_CUSTOM_DTOR__',`dnl
 ',`dnl
 __CPPNAME__::~__CPPNAME__`'()

Modified: branches/glibmm-2-18/tools/m4/class_gobject.m4
==============================================================================
--- branches/glibmm-2-18/tools/m4/class_gobject.m4	(original)
+++ branches/glibmm-2-18/tools/m4/class_gobject.m4	Fri Mar 20 22:08:01 2009
@@ -32,6 +32,15 @@
 _POP()
 ')
 
+dnl For classes that need custom code in their cast and construct_params
+dnl constructor.
+define(`_CUSTOM_CTOR_CAST',`dnl
+_PUSH()
+dnl Define this macro to be tested for later.
+define(`__BOOL_CUSTOM_CTOR_CAST__',`$1')
+_POP()
+')
+
 dnl Gdk::Pixmap_Class::wrap_new() needs a custom implementation, in order
 dnl to create a Gdk::Bitmap object if appropriate.  See comments there.
 define(`_CUSTOM_WRAP_NEW',`dnl
@@ -169,6 +178,8 @@
   return gobj();
 }
 
+ifdef(`__BOOL_CUSTOM_CTOR_CAST__',`dnl
+',`dnl
 __CPPNAME__::__CPPNAME__`'(const Glib::ConstructParams& construct_params)
 :
   __CPPPARENT__`'(construct_params)
@@ -181,6 +192,8 @@
   __CPPPARENT__`'(__PCAST__`'(castitem))
 {}
 
+')dnl
+
 ifdef(`__BOOL_CUSTOM_DTOR__',`dnl
 ',`dnl
 __CPPNAME__::~__CPPNAME__`'()

Modified: trunk/tools/m4/class_gobject.m4
==============================================================================
--- trunk/tools/m4/class_gobject.m4	(original)
+++ trunk/tools/m4/class_gobject.m4	Fri Mar 20 22:08:01 2009
@@ -32,6 +32,15 @@
 _POP()
 ')
 
+dnl For classes that need custom code in their cast and construct_params
+dnl constructor.
+define(`_CUSTOM_CTOR_CAST',`dnl
+_PUSH()
+dnl Define this macro to be tested for later.
+define(`__BOOL_CUSTOM_CTOR_CAST__',`$1')
+_POP()
+')
+
 dnl Gdk::Pixmap_Class::wrap_new() needs a custom implementation, in order
 dnl to create a Gdk::Bitmap object if appropriate.  See comments there.
 define(`_CUSTOM_WRAP_NEW',`dnl
@@ -169,6 +178,8 @@
   return gobj();
 }
 
+ifdef(`__BOOL_CUSTOM_CTOR_CAST__',`dnl
+',`dnl
 __CPPNAME__::__CPPNAME__`'(const Glib::ConstructParams& construct_params)
 :
   __CPPPARENT__`'(construct_params)
@@ -181,6 +192,8 @@
   __CPPPARENT__`'(__PCAST__`'(castitem))
 {}
 
+')dnl
+
 ifdef(`__BOOL_CUSTOM_DTOR__',`dnl
 ',`dnl
 __CPPNAME__::~__CPPNAME__`'()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]