Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coding style guidelines?
05-31-2013, 05:45 PM
Post: #3
RE: Coding style guidelines?
This page says Dolphin's style:
http://www.ppsspp.org/development.html

I personally like that style, although I also hate "{}" prefering "continue;" or similar and a few other rules. That said, I'm pretty sure other code has moved towards using braces on the same line (but generally the same style otherwise.) Also, some other differences such as member variables using underscore suffix instead of m_, etc.

Definitely // is preferred. Personally I like to reserve /* */ for blocking out large sections of code, and it doesn't work if that code has /* c-style comments */ in it.

I think the most important thing personally is to follow the prevailing style in the surrounding code. Since the coding guidelines still say my preferred bracing style, for new files I go with that, heh.

-[Unknown]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Coding style guidelines? - TheDax - 05-31-2013, 04:05 PM
RE: Coding style guidelines? - Apology11 - 05-31-2013, 05:44 PM
RE: Coding style guidelines? - [Unknown] - 05-31-2013 05:45 PM
RE: Coding style guidelines? - TheDax - 05-31-2013, 06:37 PM

Forum Jump: