2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-03-08 09:43:31 -05:00
|
|
|
// Name: cpp.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of global functions
|
2008-03-08 09:43:31 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-03-23 14:24:32 -04:00
|
|
|
|
|
|
|
/** @ingroup group_funcmacro_misc */
|
2008-03-08 09:43:31 -05:00
|
|
|
//@{
|
2008-03-08 08:52:38 -05:00
|
|
|
/**
|
2008-03-23 14:24:32 -04:00
|
|
|
This macro returns the concatenation of the arguments passed. Unlike when
|
|
|
|
using the preprocessor operator, the arguments undergo macro expansion
|
|
|
|
before being concatenated.
|
|
|
|
|
|
|
|
@header{wx/cpp.h}
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-23 14:24:32 -04:00
|
|
|
#define wxCONCAT(x1, x2)
|
|
|
|
#define wxCONCAT3(x1, x2, x3)
|
|
|
|
#define wxCONCAT4(x1, x2, x3, x4)
|
|
|
|
#define wxCONCAT5(x1, x2, x3, x4, x5)
|
2008-03-08 08:52:38 -05:00
|
|
|
//@}
|
|
|
|
|
2008-03-23 14:24:32 -04:00
|
|
|
/** @ingroup group_funcmacro_misc */
|
|
|
|
//@{
|
2008-03-08 08:52:38 -05:00
|
|
|
|
2008-03-08 09:43:31 -05:00
|
|
|
/**
|
2008-03-23 14:24:32 -04:00
|
|
|
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 @c # operator which doesn't work with macros).
|
|
|
|
|
|
|
|
Notice that this macro always produces a @c char string, use
|
|
|
|
wxSTRINGIZE_T() to build a wide string Unicode build.
|
2008-03-08 09:43:31 -05:00
|
|
|
|
2008-03-23 14:24:32 -04:00
|
|
|
@see wxCONCAT()
|
|
|
|
|
|
|
|
@header{wx/cpp.h}
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-23 14:24:32 -04:00
|
|
|
#define wxSTRINGIZE(x)
|
2008-03-08 08:52:38 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
Returns the string representation of the given symbol as either an ASCII or
|
2008-03-23 14:24:32 -04:00
|
|
|
Unicode string, depending on the current build. This is the
|
|
|
|
Unicode-friendly equivalent of wxSTRINGIZE().
|
|
|
|
|
|
|
|
@header{wx/cpp.h}
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
2008-03-23 14:24:32 -04:00
|
|
|
#define wxSTRINGIZE_T(x)
|
|
|
|
|
|
|
|
//@}
|
2008-03-08 08:52:38 -05:00
|
|
|
|