[1.1.0] - 2019-10-06
More specialized macros for operators and floats, simpler examples, self test.
Added
atto_false(x)
, the negation ofatto_assert()
, to avoid forgetting the
!
when calling something likeatto_assert(!x)
- Equality, inequality and other comparision operators, in particular to avoid
mistyping the operator, especially the==
into an assignment=
when calling something likeatto_assert(a == b)
- Equality
atto_eq(a, b)
- Inequality
atto_neq(a, b)
- Less-Than
atto_lt(a, b)
- Less-Equal
atto_le(a, b)
- Greater-Than
atto_gt(a, b)
- Greater-Equal
atto_ge(a, b)
- Equality
- Floating point equality with a custom absolute tolerance
- For floats
atto_fdelta(a, b, abstol)
- For doubles
atto_ddelta(a, b, abstol)
- For floats
- Non-finite floating point values checks
- Value is NaN
atto_nan(x)
- Value is +/- Infinity
atto_inf(x)
- Value is +Infinity
atto_plusinf(x)
- Value is -Infinity
atto_minusinf(x)
- Value is NaN or +/- Infinity
atto_notfinite(x)
- Value is anything but Nan or +/- Infinity
atto_finite(x)
- Value is NaN
- Proper self-test
selftest.c
of the whole Atto framework. - More compiler flags to check for errors during compilation of the self-test.
Removed
example.c
test file. Instead a simpler example is provided within the
Readme.