test.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /*============================================================================
  2. Kitware Information Macro Library
  3. Copyright 2010-2011 Kitware, Inc.
  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 KWIML_NAMESPACE
  11. # error "Do not include test.h outside of KWIML test files."
  12. #endif
  13. #ifndef KWIML_TEST_H
  14. #define KWIML_TEST_H
  15. /*
  16. Define KWIML_HEADER macro to help the test files include kwiml
  17. headers from the configured namespace directory. The macro can be
  18. used like this:
  19. #include KWIML_HEADER(ABI.h)
  20. */
  21. #define KWIML_HEADER(x) KWIML_HEADER0(KWIML_NAMESPACE/x)
  22. #define KWIML_HEADER0(x) KWIML_HEADER1(x)
  23. #define KWIML_HEADER1(x) <x>
  24. /* Quiet MS standard library deprecation warnings. */
  25. #ifndef _CRT_SECURE_NO_DEPRECATE
  26. # define _CRT_SECURE_NO_DEPRECATE
  27. #endif
  28. #else
  29. # error "test.h included multiple times."
  30. #endif