* This function range-checks a cmd. * * @param cmd The integer value of a command * @return true if the command is valid (and got a CommandProc function) */
| 104 | * @return true if the command is valid (and got a CommandProc function) |
| 105 | */ |
| 106 | bool IsValidCommand(Commands cmd) |
| 107 | { |
| 108 | return cmd < _command_proc_table.size(); |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * This function mask the parameter with CMD_ID_MASK and returns |
no test coverage detected