Initial commit.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / kwsys / kwsysPrivate.h
blob1b614c9bec6e27013fa4a813c3d0999157a2dd6e
1 /*=========================================================================
3 Program: KWSys - Kitware System Library
4 Module: $RCSfile: kwsysPrivate.h,v $
6 Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notices for more information.
13 =========================================================================*/
14 #ifndef KWSYS_NAMESPACE
15 # error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
16 #endif
18 #ifndef _kwsysPrivate_h
19 #define _kwsysPrivate_h
22 Define KWSYS_HEADER macro to help the c and cxx files include kwsys
23 headers from the configured namespace directory. The macro can be
24 used like this:
26 #include KWSYS_HEADER(Directory.hxx)
27 #include KWSYS_HEADER(std/vector)
29 #define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
30 #define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
31 #define KWSYS_HEADER1(x) <x>
34 Define KWSYS_NAMESPACE_STRING to be a string constant containing the
35 name configured for this instance of the kwsys library.
37 #define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
38 #define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
39 #define KWSYS_NAMESPACE_STRING1(x) #x
41 #else
42 # error "kwsysPrivate.h included multiple times."
43 #endif