| 58 | #define MI_OSX_IS_INTERPOSED |
| 59 | |
| 60 | mi_decl_externc static size_t mi_malloc_size_checked(void *p) { |
| 61 | if (!mi_is_in_heap_region(p)) return 0; |
| 62 | return mi_usable_size(p); |
| 63 | } |
| 64 | |
| 65 | // use interposing so `DYLD_INSERT_LIBRARIES` works without `DYLD_FORCE_FLAT_NAMESPACE=1` |
| 66 | // See: <https://books.google.com/books?id=K8vUkpOXhN4C&pg=PA73> |
nothing calls this directly
no test coverage detected