// GameLoop.h
#ifndef GAME_LOOP_H
#define GAME_LOOP_H
~~
#endif
- GameLoop헤더파일이 중복 컴파일 되는 것을 막아준다.
- #include "GameLoop.h" 시 헤더 파일 내용이 붙어서 사용되는데
GameLoop.h를 다른 데서도 include 하면 중복으로 include하게 되므로
에러가 발생하게 되므로 그것을 막아주는 역할을 한다.
// GameLoop.h
#ifndef GAME_LOOP_H
#define GAME_LOOP_H
~~
#endif
- GameLoop헤더파일이 중복 컴파일 되는 것을 막아준다.
- #include "GameLoop.h" 시 헤더 파일 내용이 붙어서 사용되는데
GameLoop.h를 다른 데서도 include 하면 중복으로 include하게 되므로
에러가 발생하게 되므로 그것을 막아주는 역할을 한다.