Found that almost every source files begins with #pragma once, which is only intended to be used in header to notify preprocessor to avoid duplicate header include.
It's the best to remove all of them from the source code due to its redundancy, since source code will never be intended to be part of the #include.
Suggestion
Found that almost every source files begins with
#pragma once
, which is only intended to be used in header to notify preprocessor to avoid duplicate header include.It's the best to remove all of them from the source code due to its redundancy, since source code will never be intended to be part of the
#include
.