When submitting patches or otherwise adding code to the project please follow some basic coding guidelines.
Most .c files will have this information at the very end for your reference:
Structures and Curly Braces
Please observe these conventions:
- Tabs are preferred over spaces, tab-width is four characters
- Always use curly braces for conditional statements *unless* they are on the same line and are very short
- Always space after if
- Nested else
- Function definitions with newline
Please use comments appropriate to the language you are using.
Use /* and */ when adding comments in C programs. Please don't use // for comments in C programs.
Use the // style for C++ programs
Lua has two styles of comments:
- Single Lines
- Multiple Lines