X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fb26ea3b3784922bd0613a5e96fda78fac684ac..2e9f62dafb75dc5baa3800af456d1b0248d85357:/docs/latex/wx/debugcxt.tex diff --git a/docs/latex/wx/debugcxt.tex b/docs/latex/wx/debugcxt.tex index e157d32eab..6e34ed172e 100644 --- a/docs/latex/wx/debugcxt.tex +++ b/docs/latex/wx/debugcxt.tex @@ -3,14 +3,18 @@ A class for performing various debugging and memory tracing operations. Full functionality (such as printing out objects currently allocated) is only present in a debugging build of wxWindows, -i.e. if the DEBUG symbol is defined and non-zero. wxDebugContext +i.e. if the \_\_WXDEBUG\_\_ symbol is defined. wxDebugContext and related functions and macros can be compiled out by setting -USE\_DEBUG\_CONTEXT to 0 is wx\_setup.h +wxUSE\_DEBUG\_CONTEXT to 0 is setup.h \wxheading{Derived from} No parent class. +\wxheading{Include files} + + + \wxheading{See also} \overview{Overview}{wxdebugcontextoverview} @@ -176,7 +180,7 @@ Sets the debug mode on or off. If debug mode is on, the wxObject new and delete operators store or use information about memory allocation. Otherwise, a straight malloc and free will be performed by these operators. -By default, debug mode is on if DEBUG is non-zero. If the application +By default, debug mode is on if \_\_WXDEBUG\_\_ is defined. If the application uses this function, it should make sure that all object memory allocated is deallocated with the same value of debug mode. Otherwise, the delete operator might try to look for memory information that does not @@ -251,6 +255,10 @@ This is soon to be obsolete, replaced by \helpref{wxLog}{wxlog} functionality. streambuf +\wxheading{Include files} + + + \wxheading{Example} \begin{verbatim}