mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 04:02:09 +01:00
gerror: Add a heading for the docs section on extended GErrors
This makes it a little easier to link to in the generated documentation, and separates it from the section above. Link to the heading from the documentation for `G_DEFINE_EXTENDED_ERROR`. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
b2230cb3d1
commit
11097160c0
@ -375,6 +375,8 @@
|
||||
* location is either %NULL or contains a %NULL error (e.g.
|
||||
* `g_return_if_fail (error == NULL || *error == NULL);`).
|
||||
*
|
||||
* ## Extended #GError Domains # {#gerror-extended-domains}
|
||||
*
|
||||
* Since GLib 2.68 it is possible to extend the #GError type. This is
|
||||
* done with the G_DEFINE_EXTENDED_ERROR() macro. To create an
|
||||
* extended #GError type do something like this in the header file:
|
||||
|
@ -65,6 +65,8 @@ struct _GError
|
||||
* respectively, but they should receive the private data type instead
|
||||
* of #GError.
|
||||
*
|
||||
* See [Extended #GError Domains][gerror-extended-domains] for an example.
|
||||
*
|
||||
* Since: 2.68
|
||||
*/
|
||||
#define G_DEFINE_EXTENDED_ERROR(ErrorType, error_type) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user