.
This commit is contained in:
parent
b06efe88a2
commit
5477252c23
1 changed files with 5 additions and 4 deletions
|
|
@ -133,10 +133,11 @@ When authoring a new module, use this as a base plate:
|
|||
Memory Management
|
||||
-----------------
|
||||
|
||||
If a custom type needs memory to function, it should
|
||||
always assume the memory it requested came from an arena
|
||||
allocator. This means it is the responsibility of the
|
||||
arena to free the memory, not the custom data type.
|
||||
If a custom type needs dynamically allocated memory to
|
||||
function, it should always assume the memory it requested
|
||||
came from an arena allocator. This means it is the
|
||||
responsibility of the arena to free the memory, not the
|
||||
custom data type.
|
||||
|
||||
In other words:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue