Coding Style

From Han Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is an attempt to make a personal coding style. I'm deriving this from Linux Kernel coding style created by Linus Torvalds.

Indentation

  • 8 characters using tab character
  • per Torvalds, indentations shouldn't be more than 3 levels deep

Braces

  • opening braces on the same line as the initial line except for functions