mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
Formally deprecate G_CONST_RETURN
This commit is contained in:
parent
ce9681b87e
commit
fd772fbe95
@ -247,15 +247,14 @@
|
|||||||
# define G_STMT_END while (0)
|
# define G_STMT_END while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Allow the app programmer to select whether or not return values
|
/* Deprecated -- do not use. */
|
||||||
* (usually char*) are const or not. Don't try using this feature for
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
* functions with C++ linkage.
|
|
||||||
*/
|
|
||||||
#ifdef G_DISABLE_CONST_RETURNS
|
#ifdef G_DISABLE_CONST_RETURNS
|
||||||
#define G_CONST_RETURN
|
#define G_CONST_RETURN
|
||||||
#else
|
#else
|
||||||
#define G_CONST_RETURN const
|
#define G_CONST_RETURN const
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The G_LIKELY and G_UNLIKELY macros let the programmer give hints to
|
* The G_LIKELY and G_UNLIKELY macros let the programmer give hints to
|
||||||
|
Loading…
Reference in New Issue
Block a user