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

IOS STM: Get rid of forward declarations in the cpp file #4786

Merged
merged 1 commit into from Jan 30, 2017

Conversation

lioncash
Copy link
Member

Forward declaring functions from a completely different header inside a cpp file can lead to linker errors if either of those functions have changes to their parameter set. Forward declaring also doesn't really provide any benefit within cpp files unless it's to bring an internally linked function within said cpp file into scope.

Forward declaring functions from a completely different header inside a cpp
file can lead to linker errors. Forward declaring also doesn't really
provide any benefit within cpp files unless it's to bring an internally
linked function within the same file into scope.
Copy link
Member

@leoetlino leoetlino left a comment

Choose a reason for hiding this comment

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

LGTM. Not sure why I did that instead of just including Core.h :P

@Parlane Parlane merged commit 1603191 into dolphin-emu:master Jan 30, 2017
@lioncash lioncash deleted the fwd branch January 30, 2017 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants