]>
Commit | Line | Data |
---|---|---|
23324ae1 | 1 | ///////////////////////////////////////////////////////////////////////////// |
7c913512 | 2 | // Name: cpp.h |
e54c96f1 | 3 | // Purpose: interface of global functions |
7c913512 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | //@{ | |
23324ae1 FM |
10 | /** |
11 | These macro return the concatenation of the tokens passed as their arguments. | |
12 | Unlike when using the preprocessor @c operator, the arguments undergo | |
13 | the macro expansion before being concatenated. | |
14 | */ | |
4cc4bfaf FM |
15 | wxCONCAT(x1, x2); |
16 | wxCONCAT3(x1, x2, x3); | |
17 | wxCONCAT4(x1, x2, x3, x4); | |
18 | wxCONCAT5(x1, x2, x3, x4, x5); | |
23324ae1 FM |
19 | //@} |
20 | ||
21 | ||
7c913512 FM |
22 | /** |
23 | Returns the string representation of the given symbol which can be either a | |
24 | literal or a macro (hence the advantage of using this macro instead of the | |
25 | standard preprocessor @c # operator which doesn't work with macros). | |
7c913512 | 26 | Notice that this macro always produces a @c char string, use |
e54c96f1 | 27 | wxSTRINGIZE_T() to build a wide string Unicode build. |
7c913512 | 28 | |
e54c96f1 | 29 | @see wxCONCAT() |
23324ae1 FM |
30 | */ |
31 | #define wxSTRINGIZE(x) /* implementation is private */ | |
32 | ||
33 | /** | |
34 | Returns the string representation of the given symbol as either an ASCII or | |
35 | Unicode string, depending on the current build. This is the Unicode-friendly | |
e54c96f1 | 36 | equivalent of wxSTRINGIZE(). |
23324ae1 FM |
37 | */ |
38 | #define wxSTRINGIZE_T(x) /* implementation is private */ | |
39 |