mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
GError: small documentation addition
Document that out variables are not guaranteed to be set to defined values if an error is thrown. Inspired by bug 658315
This commit is contained in:
parent
5377c0de01
commit
186c15fc87
@ -265,7 +265,7 @@
|
|||||||
* <listitem><para>
|
* <listitem><para>
|
||||||
* The quark function for the error domain is called
|
* The quark function for the error domain is called
|
||||||
* <literal><namespace>_<module>_error_quark</literal>,
|
* <literal><namespace>_<module>_error_quark</literal>,
|
||||||
* for example g_spawn_error_quark() or %g_thread_error_quark().
|
* for example g_spawn_error_quark() or g_thread_error_quark().
|
||||||
* </para></listitem>
|
* </para></listitem>
|
||||||
* <listitem><para>
|
* <listitem><para>
|
||||||
* The error codes are in an enumeration called
|
* The error codes are in an enumeration called
|
||||||
@ -315,6 +315,10 @@
|
|||||||
* immediately.
|
* immediately.
|
||||||
* </para></listitem>
|
* </para></listitem>
|
||||||
* <listitem><para>
|
* <listitem><para>
|
||||||
|
* If a #GError is reported, out parameters are not guaranteed to
|
||||||
|
* be set to any defined value.
|
||||||
|
* </para></listitem>
|
||||||
|
* <listitem><para>
|
||||||
* A #GError* must be initialized to %NULL before passing its address
|
* A #GError* must be initialized to %NULL before passing its address
|
||||||
* to a function that can report errors.
|
* to a function that can report errors.
|
||||||
* </para></listitem>
|
* </para></listitem>
|
||||||
|
Loading…
Reference in New Issue
Block a user