From 02e84ee4d18e705e3362be1e327fdb6f1397a032 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 12 May 2024 20:07:17 +1000 Subject: expand docs --- docs/Contributing/c-coding-style.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docs/Contributing/c-coding-style.md (limited to 'docs/Contributing/c-coding-style.md') diff --git a/docs/Contributing/c-coding-style.md b/docs/Contributing/c-coding-style.md new file mode 100644 index 0000000..4e268cc --- /dev/null +++ b/docs/Contributing/c-coding-style.md @@ -0,0 +1,13 @@ +--- +title: C Coding Style +--- + +A lot of these should be forced onto you by `clang-format` and `clang-tidy` but for posterity here are +a few of the styles that we stick to. + +* **Pointer next to type** - we use `type* variable` in function signatures and variable declarations e.g. `mat4* model` + + +## Memory + +### Arena allocation -- cgit v1.2.3-70-g09d2