Skip to content

Draft: Test and fix reflective BCs#352

Closed
JamesMcClung wants to merge 24 commits intopsc-code:mainfrom
JamesMcClung:wip/test-reflective-bcs
Closed

Draft: Test and fix reflective BCs#352
JamesMcClung wants to merge 24 commits intopsc-code:mainfrom
JamesMcClung:wip/test-reflective-bcs

Conversation

@JamesMcClung
Copy link
Collaborator

No description provided.

it has to run on debug mode, because otherwise the asserts aren't compiled
This way is clearer, more reliable, and yields a cleaner error message than the assert in checks_impl.
The latter might be removed without realizing tests depend on it, and leads to the pitfall where tests erroneously pass when accidentally compiled in release mode.
revert this if it's horribly inefficient
@JamesMcClung JamesMcClung force-pushed the wip/test-reflective-bcs branch from 2ffb146 to 4131f1f Compare April 17, 2025 21:14
Copy link
Contributor

@germasch germasch left a comment

Choose a reason for hiding this comment

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

LGTM. I think the compiler should be able to optimize this to about the same, and it's not likely that this function is going to be a bottleneck in any case.

@JamesMcClung JamesMcClung deleted the wip/test-reflective-bcs branch May 2, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants