MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / GetCommandHelpId

Function GetCommandHelpId

vkconfig_core/command_line.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 {HELP_RESET, "reset"}};
42
43static HelpType GetCommandHelpId(const char* token) {
44 assert(token != nullptr);
45
46 for (std::size_t i = 0, n = std::size(command_help_desc); i < n; ++i) {
47 if (std::strcmp(command_help_desc[i].token, token) == 0) {
48 return command_help_desc[i].arguments;
49 }
50 }
51
52 return HELP_NONE;
53}
54
55struct ModeDesc {
56 CommandType mode;

Callers 1

CommandLineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected