added Unicode-friendly wxSTRINGIZE_T()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -246,6 +246,7 @@ the corresponding topic.
|
|||||||
\helpref{wxStripMenuCodes}{wxstripmenucodes}\\
|
\helpref{wxStripMenuCodes}{wxstripmenucodes}\\
|
||||||
\helpref{wxStrlen}{wxstrlen}\\
|
\helpref{wxStrlen}{wxstrlen}\\
|
||||||
\helpref{wxSTRINGIZE}{wxstringize}\\
|
\helpref{wxSTRINGIZE}{wxstringize}\\
|
||||||
|
\helpref{wxSTRINGIZE\_T}{wxstringizet}\\
|
||||||
\helpref{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{wxsuppressgccprivatedtorwarning}\\
|
\helpref{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{wxsuppressgccprivatedtorwarning}\\
|
||||||
\helpref{wxSysErrorCode}{wxsyserrorcode}\\
|
\helpref{wxSysErrorCode}{wxsyserrorcode}\\
|
||||||
\helpref{wxSysErrorMsg}{wxsyserrormsg}\\
|
\helpref{wxSysErrorMsg}{wxsyserrormsg}\\
|
||||||
@@ -3280,11 +3281,23 @@ Returns the string representation of the given symbol which can be either a
|
|||||||
literal or a macro (hence the advantage of using this macro instead of the
|
literal or a macro (hence the advantage of using this macro instead of the
|
||||||
standard preprocessor \texttt{\#} operator which doesn't work with macros).
|
standard preprocessor \texttt{\#} operator which doesn't work with macros).
|
||||||
|
|
||||||
|
Notice that this macro always produces a \texttt{char} string, use
|
||||||
|
\helpref{wxSTRINGIZE\_T}{wxstringizet} to build a wide string Unicode build.
|
||||||
|
|
||||||
\wxheading{See also}
|
\wxheading{See also}
|
||||||
|
|
||||||
\helpref{wxCONCAT}{wxconcat}
|
\helpref{wxCONCAT}{wxconcat}
|
||||||
|
|
||||||
|
|
||||||
|
\membersection{wxSTRINGIZE\_T}\label{wxstringizet}
|
||||||
|
|
||||||
|
\func{}{wxSTRINGIZE\_T}{\param{}{x}}
|
||||||
|
|
||||||
|
Returns the string representation of the given symbol as either an ASCII or
|
||||||
|
Unicode string, depending on the current build. This is the Unicode-friendly
|
||||||
|
equivalent of \helpref{wxSTRINGIZE}{wxstringize}.
|
||||||
|
|
||||||
|
|
||||||
\membersection{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}\label{wxsuppressgccprivatedtorwarning}
|
\membersection{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}\label{wxsuppressgccprivatedtorwarning}
|
||||||
|
|
||||||
\func{}{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{\param{}{name}}
|
\func{}{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{\param{}{name}}
|
||||||
|
@@ -21,6 +21,9 @@
|
|||||||
#define wxSTRINGIZE_HELPER(x) #x
|
#define wxSTRINGIZE_HELPER(x) #x
|
||||||
#define wxSTRINGIZE(x) wxSTRINGIZE_HELPER(x)
|
#define wxSTRINGIZE(x) wxSTRINGIZE_HELPER(x)
|
||||||
|
|
||||||
|
/* a Unicode-friendly version of wxSTRINGIZE_T */
|
||||||
|
#define wxSTRINGIZE_T(x) wxAPPLY_T(wxSTRINGIZE(x))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Helper macros for wxMAKE_UNIQUE_NAME: normally this works by appending the
|
Helper macros for wxMAKE_UNIQUE_NAME: normally this works by appending the
|
||||||
current line number to the given identifier to reduce the probability of the
|
current line number to the given identifier to reduce the probability of the
|
||||||
|
Reference in New Issue
Block a user