Can someone explain when you're supposed to use the static keyword before global variables or constants defined in header files?
For example, lets say I have a header file with the line:
const float kGameSpriteWidth = 12.0f;
Should this have static
in front of const
or not? What are some best practices for using static
? Thanks!