Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

  1. /*-----------------------------------------------------------------------------
  2. Microsoft Fusion
  3. Microsoft Confidential
  4. Copyright Microsoft Corporation. All Rights Reserved.
  5. @doc external
  6. @module fusionpreprocessorstringize.h
  7. @owner JayKrell
  8. -----------------------------------------------------------------------------*/
  9. #if !defined(VS_COMMON_INC_FUSION_PREPROCESSORSTRINGIZE_H_INCLUDED_) // {
  10. #define VS_COMMON_INC_FUSION_PREPROCESSORSTRINGIZE_H_INCLUDED_
  11. /*#pragma once ends up in .rgi, which is bad, so do not do it*/
  12. #include "fusionpreprocessorpaste.h"
  13. #define FusionpPrivatePreprocessorStringize(x) # x
  14. /*-----------------------------------------------------------------------------
  15. Name: FusionpPreprocessorStringize, FusionpPreprocessorStringizeW
  16. @macro
  17. These macros simply stringize their parameter, after evaluating it;
  18. it is evaluated so that
  19. define A B
  20. FusionpPreprocessorStringize(A) -> "B" instead of "A"
  21. FusionpPreprocessorStringizeW(A) -> L"B" instead of L"A"
  22. @owner JayKrell
  23. -----------------------------------------------------------------------------*/
  24. #define FusionpPreprocessorStringize(x) FusionpPrivatePreprocessorStringize(x)
  25. #define FusionpPreprocessorStringizeW(x) FusionpPreprocessorPaste(L, FusionpPrivatePreprocessorStringize(x))
  26. #endif // }