Do we have a written set of coding style guidelines anywhere for PPSSPP? I'm noticing a lot of inconsistencies in how the code is laid out, in files such as sceNet.cpp and sceIo.cpp. I'm guilty of it too, since I'm unsure of how the code should be styled.
For example:
u32 sceNetAdhocInit() {
//... body omitted
}
versus
u32 sceWlanGetEtherAddr(u32 addrAddr)
{
//...body omitted
}
Should braces be on a new line(that's how I prefer it, but I can change for contributing.. <_<) or on the same line as a function declaration/if statement?
Also, how about comments?
Is this prefered:
//Line 1
//Line 2
//Line 3
Or this?
/*Line 1
*Line 2
*Line 3*/
For example:
u32 sceNetAdhocInit() {
//... body omitted
}
versus
u32 sceWlanGetEtherAddr(u32 addrAddr)
{
//...body omitted
}
Should braces be on a new line(that's how I prefer it, but I can change for contributing.. <_<) or on the same line as a function declaration/if statement?
Also, how about comments?
Is this prefered:
//Line 1
//Line 2
//Line 3
Or this?
/*Line 1
*Line 2
*Line 3*/

