mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
Deprecate G_CONST_RETURN
This commit is contained in:
parent
36741245cc
commit
a7fc7909da
@ -227,5 +227,6 @@ turn it off. This macro should only be used for return values and for
|
|||||||
<emphasis>in</emphasis> parameters.
|
<emphasis>in</emphasis> parameters.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
@Deprecated: 2.30: API providers should replace all existing uses with
|
||||||
|
<literal>const</literal> and API consumers should adjust their code
|
||||||
|
accordingly.
|
||||||
|
@ -250,11 +250,13 @@
|
|||||||
* (usually char*) are const or not. Don't try using this feature for
|
* (usually char*) are const or not. Don't try using this feature for
|
||||||
* functions with C++ linkage.
|
* functions with C++ linkage.
|
||||||
*/
|
*/
|
||||||
|
#ifndef G_DISABLE_DEPRECATED
|
||||||
#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