You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
552 B
24 lines
552 B
1 year ago
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
// Keep this file empty, and implement unit tests in separate compilation units!
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
#define CATCH_CONFIG_MAIN
|
||
|
#include <catch2/catch.hpp>
|
||
|
|
||
|
|
||
|
#ifndef NDEBUG
|
||
|
#ifdef __linux__
|
||
|
#include <fenv.h>
|
||
|
#endif
|
||
|
#endif
|
||
|
|
||
|
#ifndef NDEBUG
|
||
|
#ifdef __linux__
|
||
|
void beforeMain (void) __attribute__((constructor));
|
||
|
void beforeMain (void)
|
||
|
{
|
||
|
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
|
||
|
}
|
||
|
#endif
|
||
|
#endif
|