mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 07:26:15 +01:00
Merge branch '1022-g-object-new-zeros-docs' into 'master'
gobject: Document that g_object_new() zeros out private data Closes #1022 See merge request GNOME/glib!1586
This commit is contained in:
commit
87bc87ae69
@ -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