MCPcopy Create free account
hub / github.com/Kitware/CMake / AddArgument

Method AddArgument

Source/kwsys/CommandLineArguments.cxx:344–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void 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, \

Callers 2

testCommandLineArgumentsFunction · 0.45

Calls 1

GenerateHelpMethod · 0.95

Tested by 2

testCommandLineArgumentsFunction · 0.36