28#include <wx/cmdline.h>
52 for(
int i = 1; i <= n; i++ )
81 _(
"displays help on the command line parameters" ).mb_str(),
83 wxCMD_LINE_OPTION_HELP,
89 _(
"how high to count" ).mb_str(),
90 wxCMD_LINE_VAL_NUMBER,
91 wxCMD_LINE_PARAM_OPTIONAL,
99 wxCmdLineParser cl_parser( argc, argv );
101 cl_parser.AddUsageText(
_(
"Test a simple coroutine that yields a given number of times" ) );
103 int cmd_parsed_ok = cl_parser.Parse();
104 if( cmd_parsed_ok != 0 )
111 cl_parser.Found(
"count", &count );
126 "Test a simple coroutine",
A simple harness that counts to a preset value in a couroutine, yielding each value.
CoroutineExample(int aCount)
std::unique_ptr< MyCoroutine > m_cofunc
static bool Register(const KI_TEST::UTILITY_PROGRAM &aProgInfo)
Register a utility program factory function against an ID string.
COROUTINE< int, int > MyCoroutine
static int coroutine_main_func(int argc, char **argv)
static const wxCmdLineEntryDesc g_cmdLineDesc[]
@ BAD_CMDLINE
The command line was not correct for the tool.