]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/version.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWidgets version numbers
4 // Author: wxWidgets team
5 // RCS-ID: $Id: numdlg.h 52425 2008-03-10 15:24:38Z FM $
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 /** @addtogroup group_funcmacro_version */
13 This is a macro which evaluates to @true if the current wxWidgets version
14 is at least major.minor.release.
16 For example, to test if the program is compiled with wxWidgets 2.2 or
17 higher, the following can be done:
21 #if wxCHECK_VERSION(2, 2, 0)
22 if ( s.StartsWith("foo") )
23 #else // replacement code for old version
24 if ( strncmp(s, "foo", 3) == 0 )
33 #define wxCHECK_VERSION( major, minor, release )
36 Same as wxCHECK_VERSION() but also checks that wxSUBRELEASE_NUMBER is at
41 #define wxCHECK_VERSION_FULL( major, minor, release, subrel )