]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/version.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxWidgets version numbers
4 // Author: wxWidgets team
5 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
8 /** @addtogroup group_funcmacro_version */
12 This is a macro which evaluates to @true if the current wxWidgets version
13 is at least major.minor.release.
15 For example, to test if the program is compiled with wxWidgets 2.2 or
16 higher, the following can be done:
20 #if wxCHECK_VERSION(2, 2, 0)
21 if ( s.StartsWith("foo") )
22 #else // replacement code for old version
23 if ( strncmp(s, "foo", 3) == 0 )
32 #define wxCHECK_VERSION( major, minor, release )
35 Same as wxCHECK_VERSION() but also checks that wxSUBRELEASE_NUMBER is at
40 #define wxCHECK_VERSION_FULL( major, minor, release, subrel )