Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
|
@ -0,0 +1,35 @@
|
|||
|
||||
OpenMPT Style Guide
|
||||
===================
|
||||
|
||||
|
||||
### OpenMPT
|
||||
|
||||
**Note:**
|
||||
**This applies to all source code *except* for `libopenmpt/` and `openmpt123/`**
|
||||
**directories.**
|
||||
**Use libopenmpt style otherwise.**
|
||||
|
||||
(see below for an example)
|
||||
|
||||
* Place curly braces at the beginning of the line, not at the end
|
||||
* Generally make use of the custom index types like `SAMPLEINDEX` or
|
||||
`ORDERINDEX` when referring to samples, orders, etc.
|
||||
* When changing playback behaviour, make sure that you use the function
|
||||
`CSoundFile::IsCompatibleMode()` so that modules made with previous versions
|
||||
of MPT still sound correct (if the change is extremely small, this might be
|
||||
unnecessary)
|
||||
* `CamelCase` function and variable names are preferred.
|
||||
|
||||
#### OpenMPT code example
|
||||
|
||||
~~~~{.cpp}
|
||||
void Foo::Bar(int foobar)
|
||||
{
|
||||
while(true)
|
||||
{
|
||||
// some code
|
||||
}
|
||||
}
|
||||
~~~~
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue