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

Introduce ddsrt abort, exit, assert #1867

Closed

Conversation

poetinger
Copy link
Contributor

@poetinger poetinger commented Oct 30, 2023

It would be nice to have a single location where abort from the stdlib is actually called.

This PR will:

  • Introduce ddsrt_abort in ddsrt::process
  • Replace abort with ddsrt_abort, and include the ddsrt/process.h if it was not already included, in:
    • cdr
    • ddsc
    • ddsi
    • ddsrt
  • Add the symbol export test

This will consolidate abort calls. This will make it easy to override, change, or suppress the abort feature. Borrowing a bit of structure from Rust, the new `ddsrt_abort` was placed inside ddsrt::process.
@poetinger poetinger marked this pull request as draft October 30, 2023 15:21
@poetinger poetinger marked this pull request as ready for review October 30, 2023 15:34
@poetinger poetinger requested a review from eboasson October 30, 2023 15:34
@poetinger poetinger self-assigned this Oct 30, 2023
@poetinger poetinger added the enhancement Enhance existing functionality label Oct 30, 2023
@poetinger
Copy link
Contributor Author

The large number of failing CI is a surprise to me. I checked on my Mac and Linux machines and don't seem to get the same issues.

@poetinger poetinger changed the title Introduce ddsrt abort Introduce ddsrt abort, exit, assert Nov 7, 2023
@poetinger poetinger force-pushed the introduce-ddsrt-abort branch from a096afb to f5515eb Compare November 7, 2023 12:24
@poetinger poetinger closed this Nov 13, 2023
@poetinger poetinger deleted the introduce-ddsrt-abort branch November 13, 2023 13:05
@poetinger poetinger restored the introduce-ddsrt-abort branch November 13, 2023 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhance existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant