cpp.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: cpp.h
  3. // Purpose: interface of global functions
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /** @addtogroup group_funcmacro_misc */
  8. //@{
  9. /**
  10. This macro returns the concatenation of the arguments passed. Unlike when
  11. using the preprocessor operator, the arguments undergo macro expansion
  12. before being concatenated.
  13. @header{wx/cpp.h}
  14. */
  15. #define wxCONCAT(x1, x2)
  16. #define wxCONCAT3(x1, x2, x3)
  17. #define wxCONCAT4(x1, x2, x3, x4)
  18. #define wxCONCAT5(x1, x2, x3, x4, x5)
  19. //@}
  20. /** @addtogroup group_funcmacro_misc */
  21. //@{
  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).
  26. Notice that this macro always produces a @c char string, use
  27. wxSTRINGIZE_T() to build a wide string Unicode build.
  28. @see wxCONCAT()
  29. @header{wx/cpp.h}
  30. */
  31. #define wxSTRINGIZE(x)
  32. /**
  33. Returns the string representation of the given symbol as either an ASCII or
  34. Unicode string, depending on the current build. This is the
  35. Unicode-friendly equivalent of wxSTRINGIZE().
  36. @header{wx/cpp.h}
  37. */
  38. #define wxSTRINGIZE_T(x)
  39. /**
  40. This macro expands to the name of the current function if the compiler
  41. supports any of @c __FUNCTION__, @c __func__ or equivalent variables or
  42. macros or to @NULL if none of them is available.
  43. @header{wx/cpp.h}
  44. */
  45. #define __WXFUNCTION__
  46. //@}