]>
git.saurik.com Git - wxWidgets.git/blob - docs/doxygen/mainpages/cat_macros.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Macros-by-category page of the Doxygen manual
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
11 @page page_macro_cat Macros by Category
13 @li @ref page_macro_cat_version
14 @li @ref page_macro_cat_byteorder
15 @li @ref page_macro_cat_rtti
16 @li @ref page_macro_cat_debugging
17 @li @ref page_macro_cat_misc
23 @section page_macro_cat_version Versioning
25 The following constants are defined in wxWidgets:
27 @li wxMAJOR_VERSION is the major version of wxWidgets
28 @li wxMINOR_VERSION is the minor version of wxWidgets
29 @li wxRELEASE_NUMBER is the release number
30 @li wxSUBRELEASE_NUMBER is the subrelease number which is @c 0 for all
33 For example, the values or these constants for wxWidgets 2.8.7
36 Additionally, wxVERSION_STRING is a user-readable string containing the full
37 wxWidgets version and wxVERSION_NUMBER is a combination of the three version
38 numbers above: for 2.1.15, it is 2115 and it is 2200 for wxWidgets 2.2.
40 The subrelease number is only used for the sources in between official releases
41 and so normally is not useful.
46 @li wxCHECK_GCC_VERSION
47 @li wxCHECK_SUNCC_VERSION
49 @li wxCHECK_VERSION_FULL
50 @li wxCHECK_VISUALC_VERSION
51 @li wxCHECK_W32API_VERSION
54 @section page_macro_cat_misc Miscellaneous
62 @li wxDEPRECATED_BUT_USED_INTERNALLY
63 @li wxDEPRECATED_INLINE
66 @li wxON_BLOCK_EXIT_OBJ
69 @li wxSUPPRESS_GCC_PRIVATE_DTOR_WARNING
81 @section page_macro_cat_byteorder Byte Order
85 The endian-ness issues (that is the difference between big-endian and
86 little-endian architectures) are important for the portable programs working
87 with the external binary data (for example, data files or data coming from
88 network) which is usually in some fixed, platform-independent format.
90 The macros are helpful for transforming the data to the correct format.
92 @li wxINTXX_SWAP_ALWAYS
93 @li wxINTXX_SWAP_ON_BE
94 @li wxINTXX_SWAP_ON_LE
95 @li wxFORCE_LINK_THIS_MODULE
96 @li wxFORCE_LINK_MODULE
100 @section page_macro_cat_rtti Runtime Type Information (RTTI)
102 wxWidgets uses its own RTTI ("run-time type identification") system which
103 predates the current standard C++ RTTI and so is kept for backwards
104 compatibility reasons but also because it allows some things which the standard
105 RTTI doesn't directly support (such as creating a class from its name). The
106 standard C++ RTTI can be used in the user code without any problems and in
107 general you shouldn't need to use the functions and the macros in this section
108 unless you are thinking of modifying or adding any wxWidgets classes.
110 Related Overviews: @ref overview_rtti
113 @li #DECLARE_ABSTRACT_CLASS
116 @li #DECLARE_DYNAMIC_CLASS
117 @li #IMPLEMENT_ABSTRACT_CLASS
118 @li #IMPLEMENT_ABSTRACT_CLASS2
121 @li #IMPLEMENT_CLASS2
122 @li #IMPLEMENT_DYNAMIC_CLASS
123 @li #IMPLEMENT_DYNAMIC_CLASS2
125 @li ::wxCreateDynamicObject
128 @li #wxDynamicCastThis
131 @li #wx_reinterpret_cast
133 @li #wx_truncate_cast
136 @section page_macro_cat_debugging Debugging
138 Useful macros and functions for error checking and defensive programming.
139 wxWidgets defines three families of the assert-like macros: the wxASSERT and
140 wxFAIL macros only do anything if __WXDEBUG__ is defined (in other words, in
141 the debug build) but disappear completely in the release build. On the other
142 hand, the wxCHECK macros stay event in release builds but a check failure
143 doesn't generate any user-visible effects then. Finally, the compile time
144 assertions don't happen during the run-time but result in the compilation error
145 messages if the condition they check fail.
150 @li wxASSERT_MIN_BITSIZE
152 @li wxCOMPILE_TIME_ASSERT
153 @li wxCOMPILE_TIME_ASSERT2