Package: glib

Function glib:check-version

Lambda List

glib:check-version (major minor micro)

Arguments

major -- an unsigned integer with the required major version
minor -- an unsigned integer with the required minor version
micro -- an unsigned integer with the required micro version

Return Value

Returns nil if the GLib C library against which the Lisp binding is running is compatible with the given version, or a string describing the version mismatch.

Details

Checks if the GLib C library that is used is compatible with the given Lisp binding.

Examples

Suppose the Glib library version 2.72.1 is installed. Then the following results are returned:
(glib:check-version 2 72 0) => NIL
(glib:check-version 2 99 0) => "GLib version too old (micro mismatch)"    
 

See also

2024-10-12