MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / set_next_command

Function set_next_command

src/plugin/Plugin.cpp:456–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454std::vector<std::unique_ptr<ShortcutKey>> shortcut_storage;
455
456int set_next_command(const wchar_t *cmd_name, Pfuncplugincmd p_func) {
457 if (counter >= nb_func) {
458 assert(false); // Less actions specified in nb_func constant than added
459 return -1;
460 }
461
462 if (p_func == nullptr) {
463 counter++;
464 return counter - 1;
465 }
466
467 lstrcpy(func_item[counter].item_name, cmd_name);
468 func_item[counter].p_func = p_func;
469 func_item[counter].init2_check = false;
470 func_item[counter].p_sh_key = nullptr;
471 counter++;
472
473 return counter - 1;
474}
475
476std::wstring get_debug_log_path() {
477 std::vector<wchar_t> buf(MAX_PATH);

Callers 1

command_menu_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected