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

Fix wrong comment on disabling MSVC exceptions #1181

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

InfoTeddy
Copy link
Contributor

/EHsc does not actually disable exceptions on MSVC, it only makes the compiler assume that extern "C" functions never throw C++ exceptions.

We had a discussion on Discord about actually disabling exceptions, and from research, that requires defining _HAS_EXCEPTIONS=0, but it's unsupported and undocumented so we deemed the benefits not worth it. Thus, we will stay with /EHsc. But the comment still has to be updated.

[skip ci]

Legal Stuff:

By submitting this pull request, I confirm that...

  • My changes may be used in a future commercial release of VVVVVV
  • I will be credited in a CONTRIBUTORS file and the "GitHub Friends"
    section of the credits for all of said releases, but will NOT be compensated
    for these changes unless there is a prior written agreement

`/EHsc` does not actually disable exceptions on MSVC, it only makes the
compiler assume that `extern "C"` functions never throw C++ exceptions.

We had a discussion on Discord about actually disabling exceptions, and
from research, that requires defining `_HAS_EXCEPTIONS=0`, but it's
unsupported and undocumented so we deemed the benefits not worth it.
Thus, we will stay with `/EHsc`. But the comment still has to be
updated.

[skip ci]
@InfoTeddy InfoTeddy self-assigned this Jun 28, 2024
@InfoTeddy InfoTeddy merged commit a990f8d into TerryCavanagh:master Jul 11, 2024
@InfoTeddy InfoTeddy deleted the doc branch July 11, 2024 18:44
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.

1 participant