MCPcopy Create free account
hub / github.com/JibbSmart/JoyShockMapper / HelpCmd

Method HelpCmd

JoyShockMapper/src/main.cpp:2730–2739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2728 }
2729public:
2730 HelpCmd(CmdRegistry &reg)
2731 : JSMMacro("HELP")
2732 {
2733 // Bind allows me to use instance function by hardcoding the invisible "this" parameter, and the registry pointer
2734 SetMacro(bind(&HelpCmd::RunHelp, this, &reg));
2735
2736 // The placeholder parameter says to pass 2nd parameter of call to _parse to the 1st argument of the call to HelpCmd::Parser.
2737 // The first parameter is the command pointer which is not required because Parser is an instance function rather than a static one.
2738 SetParser(bind(&HelpCmd::Parser, this, ::placeholders::_2));
2739 }
2740};
2741
2742

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected