]> git.saurik.com Git - wxWidgets.git/commitdiff
added Unicode-friendly wxSTRINGIZE_T()
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 11:07:55 +0000 (11:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 11:07:55 +0000 (11:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/function.tex
include/wx/cpp.h

index bf4502d8a592bdde2150e3ca31ed5c492980c664..ad5237aaf48cb5842e036cf6501954d26aa74c22 100644 (file)
@@ -246,6 +246,7 @@ the corresponding topic.
 \helpref{wxStripMenuCodes}{wxstripmenucodes}\\
 \helpref{wxStrlen}{wxstrlen}\\
 \helpref{wxSTRINGIZE}{wxstringize}\\
+\helpref{wxSTRINGIZE\_T}{wxstringizet}\\
 \helpref{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{wxsuppressgccprivatedtorwarning}\\
 \helpref{wxSysErrorCode}{wxsyserrorcode}\\
 \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
 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}
 
 \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}
 
 \func{}{wxSUPPRESS\_GCC\_PRIVATE\_DTOR\_WARNING}{\param{}{name}}
index 37c58706f857b99b7a95814d551ed3b2e85e2800..6c93ca0ac90fe08a1d598ab916ac4fbf2b853f43 100644 (file)
@@ -21,6 +21,9 @@
 #define wxSTRINGIZE_HELPER(x)       #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
    current line number to the given identifier to reduce the probability of the