]> git.saurik.com Git - wxWidgets.git/blame_incremental - interface/wx/cpp.h
Restore wxString::Printf() example showing position parameters in the docs.
[wxWidgets.git] / interface / wx / cpp.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: cpp.h
3// Purpose: interface of global functions
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9
10/** @addtogroup group_funcmacro_misc */
11//@{
12/**
13 This macro returns the concatenation of the arguments passed. Unlike when
14 using the preprocessor operator, the arguments undergo macro expansion
15 before being concatenated.
16
17 @header{wx/cpp.h}
18*/
19#define wxCONCAT(x1, x2)
20#define wxCONCAT3(x1, x2, x3)
21#define wxCONCAT4(x1, x2, x3, x4)
22#define wxCONCAT5(x1, x2, x3, x4, x5)
23//@}
24
25/** @addtogroup group_funcmacro_misc */
26//@{
27
28/**
29 Returns the string representation of the given symbol which can be either a
30 literal or a macro (hence the advantage of using this macro instead of the
31 standard preprocessor @c # operator which doesn't work with macros).
32
33 Notice that this macro always produces a @c char string, use
34 wxSTRINGIZE_T() to build a wide string Unicode build.
35
36 @see wxCONCAT()
37
38 @header{wx/cpp.h}
39*/
40#define wxSTRINGIZE(x)
41
42/**
43 Returns the string representation of the given symbol as either an ASCII or
44 Unicode string, depending on the current build. This is the
45 Unicode-friendly equivalent of wxSTRINGIZE().
46
47 @header{wx/cpp.h}
48*/
49#define wxSTRINGIZE_T(x)
50
51/**
52 This macro expands to the name of the current function if the compiler
53 supports any of @c __FUNCTION__, @c __func__ or equivalent variables or
54 macros or to @NULL if none of them is available.
55
56 @header{wx/cpp.h}
57*/
58#define __WXFUNCTION__
59
60//@}
61