BSplinebasis
Loading...
Searching...
No Matches
test_checks.h
1/*
2 * ########################################################################
3 * The contents of this file is free and unencumbered software released into the
4 * public domain. For more information, please refer to <http://unlicense.org/>
5 * ########################################################################
6 */
7
12#ifndef BSPLINE_TEST_CHECKS_H
13#define BSPLINE_TEST_CHECKS_H
14
15#ifndef BSPLINE_DOXYGEN_IGNORE
16
17#ifdef BSPLINE_ADD_TEST_CHECKS
18
19#define DURING_TEST_CHECK_VALIDITY() checkValidity()
20
21#define DURING_TEST_CHECK_VALIDITY_OF(obj) obj.checkValidity()
22
23#else
24// Empty definitions of the same macros.
25
26#define DURING_TEST_CHECK_VALIDITY() \
27 do { \
28 } while (false)
29
30#define DURING_TEST_CHECK_VALIDITY_OF(obj) \
31 do { \
32 } while (false)
33
34#endif // BSPLINE_ADD_TEST_CHECKS
35
36#endif // BSPLINE_DOXYGEN_IGNORE
37
38#endif // BSPLINE_TEST_CHECKS_H