| 342 | } |
| 343 | |
| 344 | void CommandLineArguments::AddArgument(char const* argument, |
| 345 | ArgumentTypeEnum type, |
| 346 | VariableTypeEnum vtype, void* variable, |
| 347 | char const* help) |
| 348 | { |
| 349 | CommandLineArgumentsCallbackStructure s; |
| 350 | s.Argument = argument; |
| 351 | s.ArgumentType = type; |
| 352 | s.Callback = nullptr; |
| 353 | s.CallData = nullptr; |
| 354 | s.VariableType = vtype; |
| 355 | s.Variable = variable; |
| 356 | s.Help = help; |
| 357 | |
| 358 | this->Internals->Callbacks[argument] = s; |
| 359 | this->GenerateHelp(); |
| 360 | } |
| 361 | |
| 362 | #define CommandLineArgumentsAddArgumentMacro(type, ctype) \ |
| 363 | void CommandLineArguments::AddArgument(const char* argument, \ |