toxcore
toxcore copied to clipboard
Avoiding conditional directives that split up parts of statements.
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.
@marciomribeiro can you indent the #ifdefs as well?
I've attached 2 files. Do you prefer Option1 or Option2?
Option 1:

Option 2:

I like option 2
Don't know why the CI build has failed. I didn't change anything but the indentation...
that's normal, the tests are broken
On Tue, Mar 8, 2016 at 11:24 AM, Márcio Ribeiro [email protected] wrote:
Don't know why the CI build has failed. I didn't change anything but the indentation...
— Reply to this email directly or view it on GitHub https://github.com/irungentoo/toxcore/pull/1480#issuecomment-193930944.
Is the pull request now ready to be accepted?!
once I or someone else can review it yeah! thanks!
@marciomribeiro you may want to reopen this on https://github.com/TokTok/toxcore
Is this going to be merged or continued?
Done.