OpenMeridian / Meridian59

The MMORPG Meridian 59 - Server 103
openmeridian.org
Other
143 stars 75 forks source link

Refactoring conditional directives that break parts of statements. #1306

Closed lzmths closed 8 years ago

lzmths commented 8 years ago

A suggestion to compile entire statements and expressions, as suggested by code style guidelines from the Linux Kernel and practitioners.

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/CodingStyle#n892
https://www.cqse.eu/en/blog/living-in-the-ifdef-hell/

It might improve code understanding, maintainability and error-proneness.

skittles1 commented 8 years ago

Causes errors in build, also PRs should be directed to the develop branch