INNER CODE UNIT · C++
helpFunc
JuanDiegoMontoya/Gengine · src/engine/Engine.cpp:40
auto helpFunc = [](const char* arg)
{
CmdParser parser(arg);
std::vector<CmdAtom> atoms;
Identifier* identifier = nullptr;
if (arg[0] != 0)
{
while (parser.Valid())
{
atoms.push_back(parser.NextAtom());
}
identifier = std::get_if<Identifier>(&atoms[0]);
}
if (const char* desc;
atoms.empty() ||
!identifier ||