Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Prefix assume & assert definitions to prevent name clashes#70

Open
merwaaan wants to merge 1 commit into
juj:master from
lindale-dev:master
Open

Prefix assume & assert definitions to prevent name clashes #70
merwaaan wants to merge 1 commit into
juj:master from
lindale-dev:master

Conversation

@merwaaan

@merwaaan merwaaan commented Jan 14, 2022

Copy link
Copy Markdown
Contributor

Hi @juj

We use MathGeoLib alongside other libraries and recently suffered unexpected compilation errors whose cause took a bit of time to track. In the end, we found out it was actually due to MathGeoLib redefining assume, which broke other dependencies also using this common name (for instance, fmt: https://github.com/fmtlib/fmt/blob/739055ae7b08f8d5dffee9552334ede92e50b17b/include/fmt/format.h#L354)

This commit prefixes assume (as well as assert and mathassert for consistency) with "mgl_" to prevent that issue.
If you prefer, I could use another prefix.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /