| 1607 | // Extern interface |
| 1608 | |
| 1609 | void* |
| 1610 | rpmalloc(size_t size) { |
| 1611 | #if ENABLE_VALIDATE_ARGS |
| 1612 | if (size >= MAX_ALLOC_SIZE) { |
| 1613 | errno = EINVAL; |
| 1614 | return 0; |
| 1615 | } |
| 1616 | #endif |
| 1617 | return _memory_allocate(size); |
| 1618 | } |
| 1619 | |
| 1620 | void |
| 1621 | rpfree(void* ptr) { |
no test coverage detected