-
Notifications
You must be signed in to change notification settings - Fork 20
feat: abort messages #979
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
feat: abort messages #979
Conversation
0d23be8
to
4c54781
Compare
9199348
to
3b54d7d
Compare
9199348
to
7ad3756
Compare
This comment was marked as outdated.
This comment was marked as outdated.
800d0e7
to
dd11e06
Compare
329838e
to
c5c90bc
Compare
template <typename G> | ||
DETRAY_HOST_DEVICE inline auto abort(const G &) -> bool { | ||
return abort(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What G
supposed to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the call interface impl corresponding to the call containing the functor debug_msg_generator_t
in the navigator. So it stands for "generator" I guess, but I can spell it out
c5c90bc
to
4f20e69
Compare
4f20e69
to
2c6e4db
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I trust your judgement that this is the superior solution. 👍
Maybe I am just confused by what you mean. But lets for now move ahead with this PR |
Allow to pass additional messages to the navigator abort function that contain the reason for the failure. This will make it easier to debug, because it can be seen right away from where
abort
was called and why. The reason for the error is also preserved in the print inspector, which makes it easier to print it to the user in tests outside the debug file.