The "malloc" analogue to allocate block of memory of size bytes
| 53 | |
| 54 | //! The "malloc" analogue to allocate block of memory of size bytes |
| 55 | void *malloc(size_t size) { return rml::pool_malloc(my_pool, size); } |
| 56 | |
| 57 | //! The "free" analogue to discard a previously allocated piece of memory. |
| 58 | void free(void* ptr) { rml::pool_free(my_pool, ptr); } |