Handmade Hero»Forums»Code
3 posts
None
[Day 11] Problem with internal
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?
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.
[Day 11] Problem with internal
Have you #define'd internal? Internal is just a #define in the Handmade Hero codebase to be "static":

1
#define internal static


- Casey
3 posts
None
[Day 11] Problem with internal
Yes, exactly, I was so sleepy that I missed #include before #define. Thanks!