From 94ddbc199577885bd998d1f9e95692da391fc907 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 4 Apr 2015 15:36:04 +0000 Subject: Add FL_ABI_VERSION, FL_API_VERSION, Fl::abi_version(), and Fl::api_version(). The new constants are the API and ABI versions in int format, resp. The new static methods return the compiled-in API and ABI versions, resp. FLTK_ABI_VERSION is deprecated, but still defined (same as FL_ABI_VERSION). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10673 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Fl.cxx b/src/Fl.cxx index 6b1d8515b..f00952d85 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -127,15 +127,32 @@ char const * const Fl::clipboard_image = "image"; // 'Fl::version()' - Return the API version number... // -double /** Returns the compiled-in value of the FL_VERSION constant. This is useful for checking the version of a shared library. + + \deprecated Use int Fl::api_version() instead. */ -Fl::version() { +double Fl::version() { return FL_VERSION; } +/** + Returns the compiled-in value of the FL_API_VERSION constant. This + is useful for checking the version of a shared library. +*/ +int Fl::api_version() { + return FL_API_VERSION; +} + +/** + Returns the compiled-in value of the FL_ABI_VERSION constant. This + is useful for checking the version of a shared library. +*/ +int Fl::abi_version() { + return FL_ABI_VERSION; +} + /** Gets the default scrollbar size used by Fl_Browser_, -- cgit v1.2.3