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

Function mi_option_get

system/lib/mimalloc/src/options.c:270–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268
269
270mi_decl_nodiscard long mi_option_get(mi_option_t option) {
271 mi_assert(option >= 0 && option < _mi_option_last);
272 if (option < 0 || option >= _mi_option_last) return 0;
273 mi_option_desc_t* desc = &mi_options[option];
274 mi_assert(desc->option == option); // index should match the option
275 if mi_unlikely(desc->init == MI_OPTION_UNINIT) {
276 mi_option_init(desc);
277 }
278 return desc->value;
279}
280

Callers 15

_mi_options_initFunction · 0.85
mi_options_print_outFunction · 0.85
mi_option_get_clampFunction · 0.85
mi_option_get_sizeFunction · 0.85
mi_option_is_enabledFunction · 0.85
_mi_trace_messageFunction · 0.85
_mi_theap_guarded_initFunction · 0.85
_mi_theap_options_initFunction · 0.85
mi_process_init_onceFunction · 0.85
_mi_os_purge_exFunction · 0.85
_mi_os_numa_node_countFunction · 0.85
mi_arena_reserveFunction · 0.85

Calls 1

mi_option_initFunction · 0.85

Tested by

no test coverage detected