main.cpp 679 B

123456789101112131415161718192021222324
  1. ////////////////////////////////////////////////////////////////////////////////
  2. // Keep this file empty, and implement unit tests in separate compilation units!
  3. ////////////////////////////////////////////////////////////////////////////////
  4. #define CATCH_CONFIG_MAIN
  5. #include <catch2/catch.hpp>
  6. // TODO: Fix floating point exceptions raised in debug mode before re-enabling this.
  7. // #ifndef NDEBUG
  8. // #ifdef __linux__
  9. // #include <fenv.h>
  10. // #endif
  11. // #endif
  12. // #ifndef NDEBUG
  13. // #ifdef __linux__
  14. // void beforeMain (void) __attribute__((constructor));
  15. // void beforeMain (void)
  16. // {
  17. // feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
  18. // }
  19. // #endif
  20. // #endif