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

Add forward declarations for units.h, remove it from creature.h #42701

Merged
merged 2 commits into from
Aug 4, 2020

Conversation

anothersimulacrum
Copy link
Member

Summary

SUMMARY: None

Purpose of change

Should allow removing units.h from some headers, and speeding up build times.

Describe the solution

Add forward declarations for all of the units:: types in a separate header file, allowing that to be included instead of the full units.h

Testing

Compiles.

Additional context

Some more headers could probably lose units.h, I just don't know which ones.

Should allow removing units.h from some headers, and speeding up build
times.
@anothersimulacrum anothersimulacrum added [C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style labels Aug 4, 2020
Hopefully this has some impact.
@kevingranade kevingranade merged commit dc1d68e into CleverRaven:master Aug 4, 2020
@anothersimulacrum anothersimulacrum deleted the units_fwd branch August 4, 2020 16:27
Fris0uman pushed a commit to Fris0uman/Cataclysm-DDA that referenced this pull request Aug 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants