Handmade Hero»Forums»Code
2 posts
Header including problem
Edited by Shihao on
Hi, I'm new to Handmade Hero. This is a very interesting project and I really enjoy coding with Casey.

However, after following 10th day, I find a thing that I don't quite understand: Why code in handmade.h or handmade.cpp can use some type defined in win32_handmade.cpp, like 'internal'? Why don't Casey put all our own defined type in 'handmade.h' so other platform-dependent code can reuse it?

Sorry for such a naive question. I just learned C++ for several months.
Mārtiņš Možeiko
2559 posts / 2 projects
Header including problem
Edited by Mārtiņš Možeiko on
It was changed later.
Now we have handmade_platform.h which contains common things like "internal".

Why this is a problem?
2 posts
Header including problem
I only followed first 10 episodes so I don't know that. Thank you!