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

Change formatting of exceptions, using variadic macro and type-erased implementation #230

Merged
merged 7 commits into from
Oct 10, 2024

Conversation

ManifoldFR
Copy link
Member

@ManifoldFR ManifoldFR commented Oct 9, 2024

This PR makes changes to the ALIGATOR_RUNTIME_ERROR and ALIGATOR_WARNING macros, and cuts down on the number of LOC pulled into the header aligator/utils/exceptions.hpp which is included everywhere.

Merge after #229

@ManifoldFR ManifoldFR requested a review from edantec October 9, 2024 20:36
@ManifoldFR ManifoldFR force-pushed the change-formatting-of-exceptions branch 7 times, most recently from fa741fd to 2db2c32 Compare October 10, 2024 15:25
@ManifoldFR ManifoldFR changed the title Change formatting of exceptions Change formatting of exceptions, using variadic macro and type-erased implementation Oct 10, 2024
@ManifoldFR ManifoldFR enabled auto-merge October 10, 2024 15:26
Copy link
Collaborator

@edantec edantec left a comment

Choose a reason for hiding this comment

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

Rubberstamped

+ remove include of <array> header, use raw C-style array
+ better headline
formatting function

+ Make ALIGATOR_RUNTIME_ERROR, ALIGATOR_WARNING to variadic macros
+ Calling either macro does not require including fmt/format.h
+ Change include of fmt/color.h to fmt/base.h in exceptions.h (reduces
  size of include)
+ Add src/utils/exceptions.cpp
+ move include to fwd.hpp header
+ remove use of exception macros in gar
+ move math exceptions to fwd.hpp
@ManifoldFR ManifoldFR force-pushed the change-formatting-of-exceptions branch from 937ea32 to 54be0d8 Compare October 10, 2024 15:37
@ManifoldFR ManifoldFR merged commit 1f8afdf into devel Oct 10, 2024
34 checks passed
@ManifoldFR ManifoldFR deleted the change-formatting-of-exceptions branch October 10, 2024 16:01
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