]> git.saurik.com Git - wxWidgets.git/blob - include/wx/build.h
create the DIBs in correct (and not down up) line order
[wxWidgets.git] / include / wx / build.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/build.h
3 // Purpose: wxBuildOptions class declaration
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 07.05.02
7 // RCS-ID: $Id$
8 // Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_BUILD_H_
13 #define _WX_BUILD_H_
14
15 #include "wx/version.h"
16
17 // ----------------------------------------------------------------------------
18 // wxBuildOptions
19 // ----------------------------------------------------------------------------
20
21 class wxBuildOptions
22 {
23 public:
24 // the ctor must be inline to get the compilation settings of the code
25 // which included this header
26 wxBuildOptions()
27 {
28 // debug/release
29 #ifdef __WXDEBUG__
30 m_isDebug = TRUE;
31 #else
32 m_isDebug = FALSE;
33 #endif
34
35 // version: we don't test the micro version as hopefully changes
36 // between 2 micro versions don't result in fatal compatibility
37 // problems
38 m_verMaj = wxMAJOR_VERSION;
39 m_verMin = wxMINOR_VERSION;
40 }
41
42 private:
43 // the version
44 int m_verMaj,
45 m_verMin;
46
47 // compiled with __WXDEBUG__?
48 bool m_isDebug;
49
50 // actually only CheckBuildOptions() should be our friend but well...
51 friend class wxAppBase;
52 };
53
54 #endif // _WX_BUILD_H_
55