MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / mi_new

Function mi_new

system/lib/mimalloc/src/alloc.c:702–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700}
701
702mi_decl_nodiscard mi_decl_restrict void* mi_new(size_t size) {
703 return mi_theap_alloc_new(_mi_theap_default(), size);
704}
705
706mi_decl_nodiscard mi_decl_restrict void* mi_heap_alloc_new(mi_heap_t* heap, size_t size) {
707 void* p = mi_heap_malloc(heap, size);

Callers 2

operator newFunction · 0.85
operator new[]Function · 0.85

Calls 2

mi_theap_alloc_newFunction · 0.85
_mi_theap_defaultFunction · 0.85

Tested by

no test coverage detected