Skip to content

Commit

Permalink
add mi_is_redirected back (issue #993)
Browse files Browse the repository at this point in the history
  • Loading branch information
daanx committed Feb 11, 2025
1 parent 1d3d193 commit 78dd3f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,11 @@ bool mi_decl_noinline _mi_preloading(void) {
return os_preloading;
}

// Returns true if mimalloc was redirected
mi_decl_nodiscard bool mi_is_redirected(void) mi_attr_noexcept {
return _mi_is_redirected();
}

// Called once by the process loader from `src/prim/prim.c`
void _mi_process_load(void) {
mi_heap_main_init();
Expand Down

0 comments on commit 78dd3f0

Please sign in to comment.