mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-24 02:47:52 +02:00
Move version docs inline
This commit is contained in:
@@ -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)) || \
|
||||
|
Reference in New Issue
Block a user