added wxLL and wxLongLongFmtSpec macros; documented them; added a test in the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -153,6 +153,8 @@ the corresponding topic.
|
||||
\helpref{wxLogTrace}{wxlogtrace}\\
|
||||
\helpref{wxLogVerbose}{wxlogverbose}\\
|
||||
\helpref{wxLogWarning}{wxlogwarning}\\
|
||||
\helpref{wxLL}{wxll}\\
|
||||
\helpref{wxLongLongFmtSpec}{wxlonglongfmtspec}\\
|
||||
\helpref{wxMakeMetafilePlaceable}{wxmakemetafileplaceable}\\
|
||||
\helpref{wxMatchWild}{wxmatchwild}\\
|
||||
\helpref{wxMessageBox}{wxmessagebox}\\
|
||||
@@ -2109,6 +2111,44 @@ the compiler supports it or nothing otherwise. Thus, it can be used even in the
|
||||
code which might have to be compiled with an old compiler without support for
|
||||
this language feature but still take advantage of it when it is available.
|
||||
|
||||
\membersection{wxLL}\label{wxll}
|
||||
|
||||
\func{wxLongLong\_t}{wxLL}{\param{}{number}}
|
||||
|
||||
This macro is defined for the platforms with a native 64 bit integer type and
|
||||
allows to define 64 bit compile time constants:
|
||||
|
||||
\begin{verbatim}
|
||||
#ifdef wxLongLong\_t
|
||||
wxLongLong\_t ll = wxLL(0x1234567890abcdef);
|
||||
#endif
|
||||
\end{verbatim}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/longlong.h>
|
||||
|
||||
\membersection{wxLongLongFmtSpec}\label{wxlonglongfmtspec}
|
||||
|
||||
This macro is defined to contain the {\tt printf()} format specifier using
|
||||
which 64 bit integer numbers (i.e. those of type {\tt wxLongLong\_t}) can be
|
||||
printed. Example of using it:
|
||||
|
||||
\begin{verbatim}
|
||||
#ifdef wxLongLong\_t
|
||||
wxLongLong\_t ll = wxLL(0x1234567890abcdef);
|
||||
printf("Long long = %" wxLongLongFmtSpec "x\n", ll);
|
||||
#endif
|
||||
\end{verbatim}
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
\helpref{wxLL}{wxll}
|
||||
|
||||
\wxheading{Include files}
|
||||
|
||||
<wx/longlong.h>
|
||||
|
||||
\membersection{::wxNewId}\label{wxnewid}
|
||||
|
||||
\func{long}{wxNewId}{\void}
|
||||
|
@@ -25,10 +25,16 @@ also has operators for implicit construction from and conversion to the native
|
||||
|
||||
You would usually use this type in exactly the same manner as any other
|
||||
(built-in) arithmetic type. Note that wxLongLong is a signed type, if you
|
||||
want unsigned values use wxULongLong.
|
||||
want unsigned values use wxULongLong which has exactly the same API as
|
||||
wxLongLong except when explicitly mentioned otherwise.
|
||||
|
||||
If a native (i.e. supported directly by the compiler) 64 bit integer type was
|
||||
found a typedef {\it wxLongLong\_t} will be defined to correspond it.
|
||||
found to exist, {\it wxLongLong\_t} macro will be defined to correspond to it.
|
||||
Also, in this case only, two additional macros will be defined:
|
||||
\helpref{wxLongLongFmtSpec}{wxlonglongfmtspec} for printing 64 bit integers
|
||||
using the standard {\tt printf()} function (but see also
|
||||
\helpref{ToString()}{wxlonglongtostring} for a more portable solution) and
|
||||
\helpref{wxLL}{wxll} for defining 64 bit integer compile-time constants.
|
||||
|
||||
\wxheading{Derived from}
|
||||
|
||||
|
Reference in New Issue
Block a user