test_abi_CXX.cxx 398 B

12345678910111213141516171819
  1. /*
  2. Copyright Kitware, Inc.
  3. Distributed under the OSI-approved BSD 3-Clause License.
  4. See accompanying file Copyright.txt for details.
  5. */
  6. #include "test.h"
  7. #include "../include/kwiml/abi.h"
  8. #include "test_abi_endian.h"
  9. #ifndef KWIML_ABI_VERSION
  10. # error "KWIML_ABI_VERSION not defined!"
  11. #endif
  12. extern "C" int test_abi_CXX(void)
  13. {
  14. if(!test_abi_endian())
  15. {
  16. return 0;
  17. }
  18. return 1;
  19. }