Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MANIF_ASSERT #138

Merged
merged 2 commits into from
Jun 17, 2020
Merged

Add MANIF_ASSERT #138

merged 2 commits into from
Jun 17, 2020

Conversation

artivis
Copy link
Owner

@artivis artivis commented Jun 13, 2020

Add macro MANIF_ASSERT.

The macro asserts that a condition is true or throws otherwise. It replaces MANIF_CHECK for a couple numerical checks as requested in this comment.

MANIF_ASSERT macro can be disabled by either defining MANIF_NO_DEBUG or the usual NDEBUG.

@artivis artivis added the enhancement New feature or request label Jun 13, 2020
@artivis artivis self-assigned this Jun 13, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #138 into devel will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##            devel     #138   +/-   ##
=======================================
  Coverage   98.23%   98.23%           
=======================================
  Files          37       37           
  Lines        1130     1130           
=======================================
  Hits         1110     1110           
  Misses         20       20           

@artivis
Copy link
Owner Author

artivis commented Jun 16, 2020

The tests fail because of the newly introduced arm64 job which uses gcc-9 resulting in a bunch of error about deprecated implicit operators.
I'll merge this as soon as approved since the other tests are passing and open a ticket to support gcc-8/9.

@artivis
Copy link
Owner Author

artivis commented Jun 16, 2020

@joansola Can you please review/approve?

@artivis artivis mentioned this pull request Jun 16, 2020
4 tasks
Copy link
Collaborator

@joansola joansola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me

@artivis artivis merged commit 6d07bc6 into devel Jun 17, 2020
@artivis artivis deleted the feature/manif_assert branch June 17, 2020 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants