Registers a command dictionary with the CLI
| 421 | |
| 422 | // Registers a command dictionary with the CLI |
| 423 | void CLI_registerDictionary( const CLIDictItem *cmdDict, const char* dictName ) |
| 424 | { |
| 425 | // Make sure this max limit of dictionaries hasn't been reached |
| 426 | if ( CLIDictionariesUsed >= CLIMaxDictionaries ) |
| 427 | { |
| 428 | erro_printNL("Max number of dictionaries defined already..."); |
| 429 | return; |
| 430 | } |
| 431 | |
| 432 | // Add dictionary |
| 433 | CLIDictNames[CLIDictionariesUsed] = (char*)dictName; |
| 434 | CLIDict[CLIDictionariesUsed++] = (CLIDictItem*)cmdDict; |
| 435 | } |
| 436 | |
| 437 | inline void CLI_tabCompletion() |
| 438 | { |
no outgoing calls
no test coverage detected
searching dependent graphs…