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

Exception stuff #511

Merged
merged 8 commits into from
Aug 4, 2015
Merged

Exception stuff #511

merged 8 commits into from
Aug 4, 2015

Conversation

zrax
Copy link
Member

@zrax zrax commented Aug 3, 2015

This makes use of some exception information where it was previously being ignored, and derives HeadSpin exceptions from std::exception. It also adds compiler feature detection for noexcept, override, and final, and makes use of noexcept in a few places where it may be useful (mostly the hsExceptions and plString)

}
else
{
printf("Something bad happened while reading SDLMgr data: %s", e.what());
Copy link
Member

Choose a reason for hiding this comment

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

Where does this message go?

@@ -130,6 +130,22 @@ typedef int32_t hsError;
# define hsDeprecated(message)
#endif

#ifdef HAVE_OVERRIDE
# define HS_OVERRIDE override
Copy link
Member

Choose a reason for hiding this comment

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

This has been around since MSVC++2012. Do we actually have to test for it?

Copy link
Member Author

Choose a reason for hiding this comment

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

We've specified our minimum MSVC compiler, but I don't know what we're targetting for GCC now that it has better support. IIRC, GCC only added override/final in version 4.7. I'm fine with making GCC 4.7 the minimum version though and cleaning this up :)

FYI, this minimum would exclude Ubuntu 12.04 LTS -- a distro I've usually still tried to support with libhsplasma.

Hoikas added a commit that referenced this pull request Aug 4, 2015
@Hoikas Hoikas merged commit f1dfd47 into H-uru:master Aug 4, 2015
@zrax zrax deleted the exception_cleanup branch January 21, 2021 17:33
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.

None yet

2 participants