Peano
Loading...
Searching...
No Matches
require-asserts.h
Go to the documentation of this file.
1#ifndef APPARENT_HORIZON_FINDER_TEST_REQUIRE_ASSERTS_H_
2#define APPARENT_HORIZON_FINDER_TEST_REQUIRE_ASSERTS_H_
3
4// The AHF tests check with assert, which NDEBUG compiles away: built with it,
5// every test would pass whatever the code does. Every test program includes
6// this header, so such a build fails instead. Build the tests in Debug.
7#ifdef NDEBUG
8#error "The AHF tests check with assert and NDEBUG removes it: build them without NDEBUG (CMAKE_BUILD_TYPE=Debug)"
9#endif
10
11#endif // APPARENT_HORIZON_FINDER_TEST_REQUIRE_ASSERTS_H_