kwsysPrivate.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*============================================================================
  2. KWSys - Kitware System Library
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef KWSYS_NAMESPACE
  11. # error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
  12. #endif
  13. #ifndef _kwsysPrivate_h
  14. #define _kwsysPrivate_h
  15. /*
  16. Define KWSYS_HEADER macro to help the c and cxx files include kwsys
  17. headers from the configured namespace directory. The macro can be
  18. used like this:
  19. #include KWSYS_HEADER(Directory.hxx)
  20. #include KWSYS_HEADER(std/vector)
  21. */
  22. #define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
  23. #define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
  24. #define KWSYS_HEADER1(x) <x>
  25. /*
  26. Define KWSYS_NAMESPACE_STRING to be a string constant containing the
  27. name configured for this instance of the kwsys library.
  28. */
  29. #define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
  30. #define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
  31. #define KWSYS_NAMESPACE_STRING1(x) #x
  32. #else
  33. # error "kwsysPrivate.h included multiple times."
  34. #endif