Merge branch 'document-why-no-msvc-noreturn' into 'master'

gmacros: MSVC supports the noreturn function attribute

See merge request GNOME/glib!583
This commit is contained in:
Philip Withnall 2019-01-15 14:46:29 +00:00
commit 74099b4045

View File

@ -190,6 +190,10 @@
#define G_GNUC_SCANF( format_idx, arg_idx )
#define G_GNUC_STRFTIME( format_idx )
#define G_GNUC_FORMAT( arg_idx )
/* NOTE: MSVC has __declspec(noreturn) but unlike GCC __attribute__,
* __declspec can only be placed at the start of the function prototype
* and not at the end, so we can't use it without breaking API.
*/
#define G_GNUC_NORETURN
#define G_GNUC_CONST
#define G_GNUC_UNUSED