|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
This interface is here to abstract over the allocator. More...
#include <interface.h>
Data Fields | |
| void *(* | allocate )(size_t size, size_t alignment) |
| void(* | release )(void *p) |
This interface is here to abstract over the allocator.
For instance, malloc/free can be a page provider. This will let us switch to other implementation later on. Eventually we might end up coming up with our own version of malloc/free.
Definition at line 69 of file interface.h.
| void *(* srn_memory_provider_t::allocate) (size_t size, size_t alignment) |
Definition at line 70 of file interface.h.
| void(* srn_memory_provider_t::release) (void *p) |
Definition at line 71 of file interface.h.