| 3078 | // Extern interface |
| 3079 | |
| 3080 | extern inline RPMALLOC_ALLOCATOR void* |
| 3081 | rpmalloc(size_t size) { |
| 3082 | #if ENABLE_VALIDATE_ARGS |
| 3083 | if (size >= MAX_ALLOC_SIZE) { |
| 3084 | errno = EINVAL; |
| 3085 | return 0; |
| 3086 | } |
| 3087 | #endif |
| 3088 | heap_t* heap = get_thread_heap(); |
| 3089 | return _rpmalloc_allocate(heap, size); |
| 3090 | } |
| 3091 | |
| 3092 | extern inline void |
| 3093 | rpfree(void* ptr) { |
no test coverage detected