| 928 | #endif |
| 929 | |
| 930 | static mi_decl_noinline void* mi_heap_try_new(mi_heap_t* heap, size_t size, bool nothrow ) { |
| 931 | void* p = NULL; |
| 932 | while(p == NULL && mi_try_new_handler(nothrow)) { |
| 933 | p = mi_heap_malloc(heap,size); |
| 934 | } |
| 935 | return p; |
| 936 | } |
| 937 | |
| 938 | static mi_decl_noinline void* mi_try_new(size_t size, bool nothrow) { |
| 939 | return mi_heap_try_new(mi_get_default_heap(), size, nothrow); |
no test coverage detected