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

Function itemsGetter

KBotExt/Misc.h:399–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397}
398
399static bool itemsGetter(void* data, const int n, const char** out_str)
400{
401 if (const auto& items = *static_cast<std::vector<std::string>*>(data); n >= 0 && n < static_cast<int>(items.size()))
402 {
403 *out_str = items[n].c_str();
404 return true;
405 }
406 return false;
407}
408
409namespace ImGui
410{

Callers 1

ComboAutoSelectComplexFunction · 0.85

Calls 2

c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected