]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/version.h
support for iPhone callbacks
[wxWidgets.git] / interface / wx / version.h
CommitLineData
8af7f7c1
BP
1/////////////////////////////////////////////////////////////////////////////
2// Name: version.h
3// Purpose: wxWidgets version numbers
4// Author: wxWidgets team
a9a4f229 5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
8af7f7c1
BP
7/////////////////////////////////////////////////////////////////////////////
8
b21126db 9/** @addtogroup group_funcmacro_version */
8af7f7c1
BP
10//@{
11
12/**
13 This is a macro which evaluates to @true if the current wxWidgets version
14 is at least major.minor.release.
3c4f71cc 15
8af7f7c1
BP
16 For example, to test if the program is compiled with wxWidgets 2.2 or
17 higher, the following can be done:
3c4f71cc 18
8af7f7c1
BP
19 @code
20 wxString s;
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 )
25 #endif
26 {
27 ...
28 }
29 @endcode
9579c1d7
BP
30
31 @header{wx/version.h}
8af7f7c1
BP
32*/
33#define wxCHECK_VERSION( major, minor, release )
34
35/**
36 Same as wxCHECK_VERSION() but also checks that wxSUBRELEASE_NUMBER is at
37 least subrel.
9579c1d7
BP
38
39 @header{wx/version.h}
8af7f7c1
BP
40*/
41#define wxCHECK_VERSION_FULL( major, minor, release, subrel )
42
43//@}
44