mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during
2005-12-20 Sven Herzberg <herzi@gnome-de.org> * docs/reference/gobject/tmpl/gtype.sgml: explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during initialization
This commit is contained in:
committed by
Sven Herzberg
parent
08a8b8517d
commit
82395be214
@@ -470,9 +470,13 @@ This macro should only be used in type implementations.
|
||||
<!-- ##### MACRO G_TYPE_INSTANCE_GET_CLASS ##### -->
|
||||
<para>
|
||||
Returns the class structure of a given @instance, casted
|
||||
to a specified anchestor type @g_type of the instance.
|
||||
<para>
|
||||
to a specified ancestor type @g_type of the instance.
|
||||
</para>
|
||||
<warning><para>Note
|
||||
that while calling a GInstanceInitFunc(), the class pointer gets
|
||||
modified, so it might not always return the expected pointer.
|
||||
</para></warning>
|
||||
<para>
|
||||
This macro should only be used in type implementations.
|
||||
</para>
|
||||
|
||||
|
Reference in New Issue
Block a user