update formatting

This commit is contained in:
2026-02-22 23:35:17 -05:00
parent de55a1c1df
commit 1e724f6a2c
5 changed files with 108 additions and 66 deletions

View File

@@ -40,6 +40,8 @@ The platform and renderer layers are C-style APIs with opaque handles. `platform
This project is written in C-style C++. We use `.cpp` files and a small subset of C++ features (default struct values, function overloading, namespaces where useful) but avoid the rest. No classes, no inheritance, limit templates, no exceptions, no RAII, avoid STL containers or algorithms. Data is plain structs. Functions operate on those structs, or pointers to them.
Opening braces go on the same line as the function signature (K&R style), not on the next line.
Memory is managed with arena allocators where possible rather than individual `malloc`/`free` or `new`/`delete` calls. Arenas make allocation fast, avoid fragmentation, and simplify cleanup.
## Dependencies