mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
gobject: Document that g_object_new() zeros out private data
It’s already mentioned at https://developer.gnome.org/gobject/stable/chapter-gobject.html#gobject-instantiation, but is important enough that mentioning it in the documentation for `g_object_new()` seems helpful. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1022
This commit is contained in:
parent
a84f241dd7
commit
41937c3631
@ -1745,7 +1745,9 @@ g_object_get_type (void)
|
||||
* Creates a new instance of a #GObject subtype and sets its properties.
|
||||
*
|
||||
* Construction parameters (see #G_PARAM_CONSTRUCT, #G_PARAM_CONSTRUCT_ONLY)
|
||||
* which are not explicitly specified are set to their default values.
|
||||
* which are not explicitly specified are set to their default values. Any
|
||||
* private data for the object is guaranteed to be initialized with zeros, as
|
||||
* per g_type_create_instance().
|
||||
*
|
||||
* Note that in C, small integer types in variable argument lists are promoted
|
||||
* up to #gint or #guint as appropriate, and read back accordingly. #gint is 32
|
||||
|
Loading…
Reference in New Issue
Block a user