summaryrefslogtreecommitdiffstats
path: root/Utilities/KWIML/test/test.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-06-27 18:08:31 (GMT)
committerBrad King <brad.king@kitware.com>2011-06-27 18:09:09 (GMT)
commitb2975adb31b891d87bb9828097a10167b811e96b (patch)
tree603e995eb053b4542225d31b3eb6513c8a64310a /Utilities/KWIML/test/test.h
parentea1a519a356cb8b6a54ca3858f20aa9560be9ccf (diff)
parent831badeca25a8eca9e92dbbb181ea69b58112b2c (diff)
downloadCMake-b2975adb31b891d87bb9828097a10167b811e96b.zip
CMake-b2975adb31b891d87bb9828097a10167b811e96b.tar.gz
CMake-b2975adb31b891d87bb9828097a10167b811e96b.tar.bz2
Merge branch 'upstream-kwiml' into import-KWIML
Introduce KWIML as a subtree at Utilities/KWIML.
Diffstat (limited to 'Utilities/KWIML/test/test.h')
-rw-r--r--Utilities/KWIML/test/test.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/Utilities/KWIML/test/test.h b/Utilities/KWIML/test/test.h
new file mode 100644
index 0000000..8abb195
--- /dev/null
+++ b/Utilities/KWIML/test/test.h
@@ -0,0 +1,35 @@
+/*============================================================================
+ Kitware Information Macro Library
+ Copyright 2010-2011 Kitware, Inc.
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even the
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License for more information.
+============================================================================*/
+#ifndef KWIML_NAMESPACE
+# error "Do not include test.h outside of KWIML test files."
+#endif
+
+#ifndef KWIML_TEST_H
+#define KWIML_TEST_H
+
+/*
+ Define KWIML_HEADER macro to help the test files include kwiml
+ headers from the configured namespace directory. The macro can be
+ used like this:
+
+ #include KWIML_HEADER(ABI.h)
+*/
+#define KWIML_HEADER(x) KWIML_HEADER0(KWIML_NAMESPACE/x)
+#define KWIML_HEADER0(x) KWIML_HEADER1(x)
+#define KWIML_HEADER1(x) <x>
+
+/* Quiet MS standard library deprecation warnings. */
+#define _CRT_SECURE_NO_DEPRECATE
+
+#else
+# error "test.h included multiple times."
+#endif