]> git.saurik.com Git - wxWidgets.git/blame - include/wx/build.h
added default parameter values to the overloaded Show() and Enable() versions
[wxWidgets.git] / include / wx / build.h
CommitLineData
090a6d7a
VZ
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 license
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_BUILD_H_
13#define _WX_BUILD_H_
14
15#include "wx/version.h"
16
17// ----------------------------------------------------------------------------
18// wxBuildOptions
19// ----------------------------------------------------------------------------
20
21class wxBuildOptions
22{
23public:
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
42private:
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