mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 23:46:15 +01:00
gstrfuncs: Ignore parsing inline macro versions for docs and g-i
We have actual definitions for these functions so we should ignore their inline versions, not to potentially break doc parsers due to the different argument names. For some reasons we can't merge the check together with the gnu C check if, otherwise the check gets ignored by doc parser.
This commit is contained in:
parent
a4fe981a7f
commit
a9ee3a5faa
@ -147,6 +147,7 @@ gboolean (g_str_has_prefix) (const gchar *str,
|
||||
const gchar *prefix);
|
||||
|
||||
#if G_GNUC_CHECK_VERSION (2, 0)
|
||||
#if !defined (__GTK_DOC_IGNORE__) && !defined (__GI_SCANNER__)
|
||||
|
||||
/* This macro is defeat a false -Wnonnull warning in GCC.
|
||||
* Without it, it thinks strlen and memcmp may be getting passed NULL
|
||||
@ -202,6 +203,7 @@ gboolean (g_str_has_prefix) (const gchar *str,
|
||||
(g_str_has_suffix) (STR, SUFFIX) \
|
||||
)
|
||||
|
||||
#endif /* !defined (__GTK_DOC_IGNORE__) && !defined (__GI_SCANNER__) */
|
||||
#endif /* G_GNUC_CHECK_VERSION (2, 0) */
|
||||
|
||||
/* String to/from double conversion functions */
|
||||
|
Loading…
Reference in New Issue
Block a user