Move version docs inline

This commit is contained in:
Matthias Clasen
2011-07-17 23:50:31 -04:00
parent 20cd4936b9
commit adc325fac0
4 changed files with 60 additions and 115 deletions

View File

@@ -446,6 +446,24 @@ const gchar * glib_check_version (guint required_major,
guint required_minor,
guint required_micro);
/**
* GLIB_CHECK_VERSION:
* @major: the major version to check for
* @minor: the minor version to check for
* @micro: the micro version to check for
*
* Checks the version of the GLib library.
* Returns %TRUE if the version of the GLib header files
* is the same as or newer than the passed-in version.
*
* <example>
* <title>Checking the version of the GLib library</title>
* <programlisting>
* if (!GLIB_CHECK_VERSION (1, 2, 0))
* g_error ("GLib version 1.2.0 or above is needed");
* </programlisting>
* </example>
*/
#define GLIB_CHECK_VERSION(major,minor,micro) \
(GLIB_MAJOR_VERSION > (major) || \
(GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \