[OPTIONAL] Include guards
WhoseTheNerd opened this issue · 4 comments
It fixes errors like circular reference between headers and C1014. Makes executable file smaller.
Here's some links:
https://en.wikipedia.org/wiki/Include_guard
http://www.cplusplus.com/forum/general/71787/
Sparky uses include guards (building sth. like Sparky would not be possible without it), can you elaborate on what you mean exactly?
I don't see include guards in SOURCE CODE of header file. Include guard is like: is this defined? if yes then don't include that, if no then include that.
It does use include guard. #pragma once
basically does it, which you can find in every header.
Ok, i know that, but i meant '#ifndef SOUND_H \n #define SOUND_H \n "CODE" \n #endif'. My link to wikipedia explains this.