]>
git.saurik.com Git - wxWidgets.git/blob - interface/platform.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 Same as wxCHECK_VERSION but also checks that
11 @c wxSUBRELEASE_NUMBER is at least @e subrel.
13 #define bool wxCHECK_VERSION_FULL(major, minor, release, subrel) /* implementation is private */
17 This is a macro which evaluates to @true if the current wxWidgets version is at
18 least major.minor.release.
20 For example, to test if the program is compiled with wxWidgets 2.2 or higher,
21 the following can be done:
24 #if wxCHECK_VERSION(2, 2, 0)
25 if ( s.StartsWith("foo") )
26 #else // replacement code for old version
27 if ( strncmp(s, "foo", 3) == 0 )
34 #define bool wxCHECK_VERSION(major, minor, release) /* implementation is private */
37 Returns 1 if the compiler being used to compile the code is Visual C++
38 compiler version @e major or greater. Otherwise, and also if
39 the compiler is not Visual C++ at all, returns 0.
41 #define bool wxCHECK_VISUALC_VERSION(major) /* implementation is private */
44 Returns 1 if the compiler being used to compile the code is GNU C++
45 compiler (g++) version major.minor or greater. Otherwise, and also if
46 the compiler is not GNU C++ at all, returns 0.
48 #define bool wxCHECK_GCC_VERSION(major, minor) /* implementation is private */
51 Returns 1 if the compiler being used to compile the code is Sun CC Pro
52 compiler and its version is at least @c major.minor. Otherwise returns
55 #define bool wxCHECK_SUNCC_VERSION(major, minor) /* implementation is private */