X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce7fe42e848cc0c9058dae906c3a7bded50681e6..6ba718d7aee2f519d9146b90424ccec9e2243479:/interface/wx/defs.h?ds=inline diff --git a/interface/wx/defs.h b/interface/wx/defs.h index a3859ee3e3..6783dc686a 100644 --- a/interface/wx/defs.h +++ b/interface/wx/defs.h @@ -2,7 +2,6 @@ // Name: wx/defs.h // Purpose: interface of global functions // Author: wxWidgets team -// RCS-ID: $Id$ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -484,6 +483,7 @@ enum wxBorder #define wxMORE 0x00010000 #define wxSETUP 0x00020000 #define wxICON_NONE 0x00040000 +#define wxICON_AUTH_NEEDED 0x00080000 #define wxICON_MASK \ (wxICON_EXCLAMATION|wxICON_HAND|wxICON_QUESTION|wxICON_INFORMATION|wxICON_NONE) @@ -1555,11 +1555,40 @@ template wxDELETE(T*& ptr); */ template wxDELETEA(T*& array); +/** + Generate deprecation warning with the given message when a function is + used. + + This macro can be used to generate a warning indicating that a function is + deprecated (i.e. scheduled for removal in the future) and explaining why is + it so and/or what should it be replaced with. It applies to the declaration + following it, for example: + @code + wxDEPRECATED_MSG("use safer overload returning wxString instead") + void wxGetSomething(char* buf, size_t len); + + wxString wxGetSomething(); + @endcode + + For compilers other than clang, g++ 4.5 or later and MSVC 8 (MSVS 2005) or + later, the message is ignored and a generic deprecation warning is given if + possible, i.e. if the compiler is g++ (any supported version) or MSVC 7 + (MSVS 2003) or later. + + @since 3.0 + + @header{wx/defs.h} + */ + /** This macro can be used around a function declaration to generate warnings indicating that this function is deprecated (i.e. obsolete and planned to - be removed in the future) when it is used. Only Visual C++ 7 and higher and - g++ compilers currently support this functionality. + be removed in the future) when it is used. + + Notice that this macro itself is deprecated in favour of wxDEPRECATED_MSG()! + + Only Visual C++ 7 and higher and g++ compilers currently support this + functionality. Example of use: