MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetVoidPtrRef

Method GetVoidPtrRef

KBotExt/imgui/imgui.cpp:2441–2447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2439}
2440
2441void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2442{
2443 ImGuiStoragePair* it = LowerBound(Data, key);
2444 if (it == Data.end() || it->key != key)
2445 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2446 return &it->val_p;
2447}
2448
2449// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame)
2450void ImGuiStorage::SetInt(ImGuiID key, int val)

Callers

nothing calls this directly

Calls 3

LowerBoundFunction · 0.85
ImGuiStoragePairClass · 0.85
endMethod · 0.45

Tested by

no test coverage detected