Jump to Content
Register
Log in
Forgot your password?
Third-party login
Hand made
Handmade Hero
Forums
Episode Guide
twitter
Handmade Hero
»
Forums
»
Code
← Back to index
Glamhoth
3 posts
None
#7475
[Day 11] Problem with internal
7 years, 9 months ago
Hey, I have problem when including files. When I declare function as a internal then compiler throws errors, everything works just fine without it. How do I fix it?
cmuratori
Casey Muratori
801 posts / 1 project
Casey Muratori is a programmer at Molly Rocket on the game 1935 and is the host of the educational programming series Handmade Hero.
#7476
[Day 11] Problem with internal
7 years, 9 months ago
Have you #define'd internal? Internal is just a #define in the Handmade Hero codebase to be "static":
1
#define internal static
- Casey
Glamhoth
3 posts
None
#7481
[Day 11] Problem with internal
7 years, 9 months ago
Yes, exactly, I was so sleepy that I missed #include before #define. Thanks!
← Back to index
Log in
to reply