update formatting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user