32#include <wx/cmdline.h>
56 for(
int i = 1; i <= n; i++ )
85 _(
"displays help on the command line parameters" ).mb_str(),
87 wxCMD_LINE_OPTION_HELP,
93 _(
"how high to count" ).mb_str(),
94 wxCMD_LINE_VAL_NUMBER,
95 wxCMD_LINE_PARAM_OPTIONAL,
103 wxCmdLineParser cl_parser( argc, argv );
105 cl_parser.AddUsageText(
_(
"Test a simple coroutine that yields a given number of times" ) );
107 int cmd_parsed_ok = cl_parser.Parse();
108 if( cmd_parsed_ok != 0 )
115 cl_parser.Found(
"count", &count );
130 "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.