#include "juno/status.h"
#include "juno/module.h"
#include <stddef.h>
Go to the source code of this file.
◆ JUNO_NEW_REF
Create a new reference for memory.
◆ JUNO_REF
#define JUNO_REF |
( |
|
name | ) |
REF##name |
◆ JUNO_MEMORY_ALLOC_API_T
◆ JUNO_MEMORY_ALLOC_ROOT_T
◆ JUNO_MEMORY_ALLOC_T
◆ JUNO_MEMORY_T
◆ Juno_MemoryGetRef()
Get the reference to this juno memory
- This function will track the reference count to this memory
- The reference count is used to prevent freeing of used memory
- When using
JUNO_MEMORY_T
it is recommended to pass memory around using this function to increment/decrement the reference count - Parameters
-
ptMemory | The memory to get the reference to |
- Returns
- The reference to the memory
◆ Juno_MemoryPutRef()
Put the reference to this juno memory
- This function will track the reference count to this memory
- The reference count is used to prevent freeing of used memory
- When using
JUNO_MEMORY_T
it is recommended to pass memory around using this function to increment /decrement the reference count - Parameters
-
ptMemory | The memory to put the reference away |
- Returns
- The reference to the memory
◆ JUNO_MODULE_ROOT()