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

Function mi_option_set

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

Source from the content-addressed store, hash-verified

134}
135
136void mi_option_set(mi_option_t option, long value) {
137 mi_assert(option >= 0 && option < _mi_option_last);
138 if (option < 0 || option >= _mi_option_last) return;
139 mi_option_desc_t* desc = &options[option];
140 mi_assert(desc->option == option); // index should match the option
141 desc->value = value;
142 desc->init = INITIALIZED;
143}
144
145void mi_option_set_default(mi_option_t option, long value) {
146 mi_assert(option >= 0 && option < _mi_option_last);

Callers 1

mi_option_set_enabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected