Skip to content

[1.1.0] - 2019-10-06

Compare
Choose a tag to compare
@TheMatjaz TheMatjaz released this 06 Oct 21:05
· 34 commits to master since this release

More specialized macros for operators and floats, simpler examples, self test.

Added

  • atto_false(x), the negation of atto_assert(), to avoid forgetting the
    ! when calling something like atto_assert(!x)
  • Equality, inequality and other comparision operators, in particular to avoid
    mistyping the operator, especially the == into an assignment =
    when calling something like atto_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)
  • Floating point equality with a custom absolute tolerance
    • For floats atto_fdelta(a, b, abstol)
    • For doubles atto_ddelta(a, b, abstol)
  • 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)
  • 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.