Skip to content

Coding rules

azertyfun edited this page Oct 8, 2016 · 3 revisions

Tabs or spaces?

4 spaces per tab.

camelCase or snail_case?

snail_case.

How to add a source file?

Create it, then add it to src/include.c. Since we have no way to assemble from multiple asm files, that's how it works. If you don't agree with that, feel free to modify yamakaky/dcpu then create a PR.

How to create a pull request?

Create a new branch, add this git hook that enables clang-format by copying it to .git/hooks/pre-commit, change whatever you want then create a PR on github. We will not accept PRs that aren't formatted by clang-format. Yes, that means you have to have clang-format in your path.

Clone this wiki locally