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

WIP: plCreatable modernizing #520

Merged
merged 6 commits into from
Jan 10, 2016
Merged

WIP: plCreatable modernizing #520

merged 6 commits into from
Jan 10, 2016

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Aug 16, 2015

Mostly just changing the creatable macros to properly use C++-style casts, and the creatable types to use the override keyword properly.

I started in NucleusLib, and then got distracted with investigating some of the old plKey loading stuff. Eventually we'll want all creatable classes in all libs to properly use override.

Clang (and gcc) warn about missing overrides, so the goal is to have no override warnings.

@Deledrius
Copy link
Member

👍

@zrax
Copy link
Member

zrax commented Aug 23, 2015

Due to the massive application of override in this PR, now would be a good time to decide whether we should use the HS_OVERRIDE I added recently (and fix other GCC 4.6 issues), or bump the minimum GCC to 4.7 and get rid of HS_OVERRIDE.

@dpogue
Copy link
Member Author

dpogue commented Aug 28, 2015

oops, I either forgot about HS_OVERRIDE or it was added shortly after I started this. I'm happy to use HS_OVERRIDE if that's our intention.

@Hoikas
Copy link
Member

Hoikas commented Nov 23, 2015

Did we ever figure out what needed to happen here?

@dpogue
Copy link
Member Author

dpogue commented Nov 23, 2015

Going to update it to use HS_OVERRIDE and then need to go through the rest of the engine and make sure all the creatable classes are updated properly.

@dpogue
Copy link
Member Author

dpogue commented Jan 10, 2016

Updated to use HS_OVERRIDE.

Hoikas added a commit that referenced this pull request Jan 10, 2016
WIP: plCreatable modernizing
@Hoikas Hoikas merged commit b6548a8 into H-uru:master Jan 10, 2016
return (plClassName*)plFactory::Create(plClassName##ClassIndex); \
#define CLASSNAME_REGISTER(plClassName) \
public: \
const char* ClassName() const override { \
Copy link
Member

Choose a reason for hiding this comment

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

Missed one :/

@dpogue dpogue deleted the safety-class branch January 7, 2017 05:35
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

4 participants