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

Track Ptrs in optimized code #417

Open
emilydolson opened this issue Mar 3, 2021 · 1 comment
Open

Track Ptrs in optimized code #417

emilydolson opened this issue Mar 3, 2021 · 1 comment

Comments

@emilydolson
Copy link
Collaborator

As suggested in #110, now that emp_always_assert is implemented, it would be useful to use it in Ptr.h in place of standard emp_assert. That way it will work out of debug mode and make it possible to debug pointer issues that only happen in optimized code.

@mercere99
Copy link
Member

Good call. We should make sure to only use it in there code where EMP_TRACK_MEM is turned on. Any asserts outside of that should be off when code is optimized (I don't think there are any, but it is important for optimized code to correctly be fully optimized)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants