When developing a source code as a team, it is easy to include header file repeatedly.
Include guard prevents header files from being included redundantly.
When developing a source code as a team, it is easy to include header file repeatedly.
Include guard prevents header files from being included redundantly.
// Checks if _SOMETHING IF DECLARED #ifndef _SOMETHING_ // Defines _SOMETHING_ if above // conditions fails #define _SOMETHING_
// define SOMETHING#endif // _SOMETHING_ |
댓글 없음:
댓글 쓰기