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

build: Add assert.h override #1202

Merged
merged 2 commits into from
Mar 24, 2022

Conversation

paulgessinger
Copy link
Member

I noticed in a few cases, if assert.h was not included through
cassert, ACTS_FORCE_ASSERTIONS would not do it's job because assert would then already be defined.
This commit thus enables a couple of additional assertions.

I noticed in a few cases, if `assert.h` was not included through
`cassert`, `ACTS_FORCE_ASSERTIONS` would not do it's job because `assert` would then already be defined.
This commit thus enables a couple of additional assertions.
@paulgessinger paulgessinger added this to the next milestone Mar 23, 2022
Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

Looks good to me, can go in as is. Just for reference, if you didn't know about this you might like the macro stack that most good C pre-processors support: https://gcc.gnu.org/onlinedocs/gcc/Push_002fPop-Macro-Pragmas.html

@stephenswat stephenswat added Bug Something isn't working Impact - Minor Nuissance bug and/or affects only a single module automerge labels Mar 23, 2022
@paulgessinger
Copy link
Member Author

I'm not sure how that would help here though?

@codecov
Copy link

codecov bot commented Mar 24, 2022

Codecov Report

Merging #1202 (be54e54) into main (7c5a232) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1202   +/-   ##
=======================================
  Coverage   47.75%   47.75%           
=======================================
  Files         360      360           
  Lines       18616    18616           
  Branches     8774     8774           
=======================================
  Hits         8890     8890           
  Misses       3674     3674           
  Partials     6052     6052           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@kodiakhq kodiakhq bot merged commit 0926824 into acts-project:main Mar 24, 2022
@paulgessinger paulgessinger deleted the build/assert-dot-h branch March 25, 2022 07:47
@paulgessinger paulgessinger modified the milestones: next, v18.0.0 Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Bug Something isn't working Impact - Minor Nuissance bug and/or affects only a single module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants