| 2728 | } |
| 2729 | public: |
| 2730 | HelpCmd(CmdRegistry ®) |
| 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, ®)); |
| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected