mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
gmacros: Document soft-deprecation of G_GNUC_NORETURN
It still works, and deprecating it would be quite disruptive (as it’s used in headers), so amend the documentation to point people to `G_NORETURN` instead. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #994
This commit is contained in:
parent
76426c0158
commit
9cccc08b82
@ -423,6 +423,12 @@
|
||||
* It is used for declaring functions which never return. It enables
|
||||
* optimization of the function, and avoids possible compiler warnings.
|
||||
*
|
||||
* Since 2.68, it is recommended that code uses %G_NORETURN instead of
|
||||
* %G_GNUC_NORETURN, as that works on more platforms and compilers (in
|
||||
* particular, MSVC and C++11) than %G_GNUC_NORETURN, which works with GCC and
|
||||
* Clang only. %G_GNUC_NORETURN continues to work, so has not been deprecated
|
||||
* yet.
|
||||
*
|
||||
* Place the attribute after the declaration, just before the semicolon.
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user