stephen-hqxu / superterrainplus

SuperTerrain+: A real-time procedural 3D infinite terrain engine with geographical features and photorealistic rendering.
MIT License
12 stars 1 forks source link

Unnecessary #pragma once in source file #26

Closed stephen-hqxu closed 3 years ago

stephen-hqxu commented 3 years ago

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.

stephen-hqxu commented 3 years ago

Done

All #pragma once in source files are removed.