Formally deprecate G_CONST_RETURN

This commit is contained in:
Ryan Lortie 2011-06-13 09:27:41 -04:00
parent ce9681b87e
commit fd772fbe95

View File

@ -247,15 +247,14 @@
# define G_STMT_END while (0)
#endif
/* Allow the app programmer to select whether or not return values
* (usually char*) are const or not. Don't try using this feature for
* functions with C++ linkage.
*/
/* Deprecated -- do not use. */
#ifndef G_DISABLE_DEPRECATED
#ifdef G_DISABLE_CONST_RETURNS
#define G_CONST_RETURN
#else
#define G_CONST_RETURN const
#endif
#endif
/*
* The G_LIKELY and G_UNLIKELY macros let the programmer give hints to