| 397 | } |
| 398 | |
| 399 | static 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 | |
| 409 | namespace ImGui |
| 410 | { |
no test coverage detected