Function: prolog-atleast-version
prolog-atleast-version is a byte-compiled function defined in
prolog.el.gz.
Signature
(prolog-atleast-version VERSION)
Documentation
Return t if the version of the current prolog system is VERSION or later.
VERSION is of the format (Major . Minor)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/prolog.el.gz
;;-------------------------------------------------------------------
;; Prolog mode
;;-------------------------------------------------------------------
;; Example: (prolog-atleast-version '(3 . 6))
(defun prolog-atleast-version (version)
"Return t if the version of the current prolog system is VERSION or later.
VERSION is of the format (Major . Minor)"
;; Version.major < major or
;; Version.major = major and Version.minor <= minor
(let* ((thisversion (prolog-find-value-by-system prolog-system-version))
(thismajor (car thisversion))
(thisminor (cdr thisversion)))
(or (< (car version) thismajor)
(and (= (car version) thismajor)
(<= (cdr version) thisminor)))
))