]> git.saurik.com Git - wxWidgets.git/commitdiff
moved wxSTRINGIZE to defs.h and made it work with macro argument, so that it can...
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Sep 2006 12:37:31 +0000 (12:37 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 29 Sep 2006 12:37:31 +0000 (12:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/version.h

index 18d47edfb52dffb331c04a9669f1e95d0f20457b..3ee686863d1143313575ea0b7882972262a88ed3 100644 (file)
 #   define wxSUPPRESS_GCC_PRIVATE_DTOR_WARNING(name)
 #endif
 
 #   define wxSUPPRESS_GCC_PRIVATE_DTOR_WARNING(name)
 #endif
 
+/*  ---------------------------------------------------------------------------- */
+/*  string manipulation helpers */
+/*  ---------------------------------------------------------------------------- */
+
+/* helper macros to concatenate two tokens together */
+#define wxCONCAT_HELPER(text, line) text ## line
+#define wxCONCAT(text, line)        wxCONCAT_HELPER(text, line)
+
+/* helper macros to convert a token into string literal */
+#define wxSTRINGIZE_HELPER(x)       #x
+#define wxSTRINGIZE(x)              wxSTRINGIZE_HELPER(x)
+
+
 /*  ---------------------------------------------------------------------------- */
 /*  wxWidgets version and compatibility defines */
 /*  ---------------------------------------------------------------------------- */
 /*  ---------------------------------------------------------------------------- */
 /*  wxWidgets version and compatibility defines */
 /*  ---------------------------------------------------------------------------- */
@@ -546,10 +559,6 @@ typedef int wxWindowID;
 /*  size of statically declared array */
 #define WXSIZEOF(array)   (sizeof(array)/sizeof(array[0]))
 
 /*  size of statically declared array */
 #define WXSIZEOF(array)   (sizeof(array)/sizeof(array[0]))
 
-/*  helper macros to concatenate two tokens together */
-#define wxCONCAT_HELPER(text, line) text ## line
-#define wxCONCAT(text, line)        wxCONCAT_HELPER(text, line)
-
 /*  helper macros to be able to define unique/anonymous objects: this works by */
 /*  appending the current line number to the given identifier to reduce the */
 /*  probability of the conflict (it may still happen if this is used in the */
 /*  helper macros to be able to define unique/anonymous objects: this works by */
 /*  appending the current line number to the given identifier to reduce the */
 /*  probability of the conflict (it may still happen if this is used in the */
index eecf8512e83536835ab926edfb8e87c673eca43c..9daf38f9d839b7ae1fe8c915ad036151778cfab6 100644 (file)
@@ -44,7 +44,6 @@
 #endif
 
 /*  helpers for wxVERSION_NUM_XXX */
 #endif
 
 /*  helpers for wxVERSION_NUM_XXX */
-#define wxSTRINGIZE(x)  #x
 #define wxMAKE_VERSION_STRING(x, y, z) \
     wxSTRINGIZE(x) wxSTRINGIZE(y) wxSTRINGIZE(z)
 #define wxMAKE_VERSION_DOT_STRING(x, y, z) \
 #define wxMAKE_VERSION_STRING(x, y, z) \
     wxSTRINGIZE(x) wxSTRINGIZE(y) wxSTRINGIZE(z)
 #define wxMAKE_VERSION_DOT_STRING(x, y, z) \