| 694 | |
| 695 | |
| 696 | mi_decl_nodiscard static mi_decl_restrict void* mi_theap_alloc_new(mi_theap_t* theap, size_t size) { |
| 697 | void* p = mi_theap_malloc(theap,size); |
| 698 | if mi_unlikely(p == NULL) return mi_theap_try_new(theap, size, false); |
| 699 | return p; |
| 700 | } |
| 701 | |
| 702 | mi_decl_nodiscard mi_decl_restrict void* mi_new(size_t size) { |
| 703 | return mi_theap_alloc_new(_mi_theap_default(), size); |
no test coverage detected