]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/build.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: Runtime build options checking
4 // Author: Vadim Zeitlin, Vaclav Slavik
8 // Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
15 #include "wx/version.h"
17 // ----------------------------------------------------------------------------
18 // WX_BUILD_OPTIONS_SIGNATURE
19 // ----------------------------------------------------------------------------
21 #define __WX_BO_STRINGIZE(x) #x
23 #if (wxMINOR_VERSION % 2) == 0
24 #define __WX_BO_VERSION(x,y,z) \
25 __WX_BO_STRINGIZE(x) "." __WX_BO_STRINGIZE(y)
27 #define __WX_BO_VERSION(x,y,z) \
28 __WX_BO_STRINGIZE(x) "." __WX_BO_STRINGIZE(y) "." __WX_BO_STRINGIZE(z)
32 #define __WX_BO_DEBUG "debug"
34 #define __WX_BO_DEBUG "no debug"
38 #define __WX_BO_UNICODE "Unicode"
40 #define __WX_BO_UNICODE "ANSI"
43 // This macro is passed as argument to wxConsoleApp::CheckBuildOptions()
44 #define WX_BUILD_OPTIONS_SIGNATURE \
45 __WX_BO_VERSION(wxMAJOR_VERSION, wxMINOR_VERSION, wxRELEASE_NUMBER) \
46 " (" __WX_BO_DEBUG "," __WX_BO_UNICODE ")"
50 // Use this macro to check build options. Adding it to a file in DLL will
51 // ensure that the DLL checks build options in same way IMPLEMENT_APP() does.
52 #define WX_CHECK_BUILD_OPTIONS(libName) \
53 static bool wxCheckBuildOptions() \
55 wxAppConsole::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, \
59 static bool gs_buildOptionsCheck = wxCheckBuildOptions();
61 #endif // _WX_BUILD_H_