]> git.saurik.com Git - wxWidgets.git/blame - interface/version.h
Replaced @returns with @return for more standard command use and compatibility.
[wxWidgets.git] / interface / version.h
CommitLineData
8af7f7c1
BP
1/////////////////////////////////////////////////////////////////////////////
2// Name: version.h
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 license
7/////////////////////////////////////////////////////////////////////////////
8
9/** @ingroup group_funcmacro_version */
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