MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_option_get

Function mi_option_get

3rd/mimalloc-2.0.9/src/options.c:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120mi_decl_nodiscard long mi_option_get(mi_option_t option) {
121 mi_assert(option >= 0 && option < _mi_option_last);
122 if (option < 0 || option >= _mi_option_last) return 0;
123 mi_option_desc_t* desc = &options[option];
124 mi_assert(desc->option == option); // index should match the option
125 if mi_unlikely(desc->init == UNINIT) {
126 mi_option_init(desc);
127 }
128 return desc->value;
129}
130

Callers 12

_mi_options_initFunction · 0.85
mi_option_get_clampFunction · 0.85
mi_option_is_enabledFunction · 0.85
_mi_trace_messageFunction · 0.85
_mi_segment_cache_pushFunction · 0.85
mi_process_initFunction · 0.85
mi_unix_mmap_fdFunction · 0.85
mi_region_try_allocFunction · 0.85
mi_segment_commitxFunction · 0.85
mi_segment_allocFunction · 0.85

Calls 2

mi_unlikelyFunction · 0.85
mi_option_initFunction · 0.85

Tested by

no test coverage detected