Synesis Software STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ...

Utility Functions


Detailed Description

Utility functions that supplement use of the library.


Defines

#define XTESTS_COMMANDLINE_PARSEVERBOSITY(argc, argv, pverbosity)
 Parses a verbosity from the command-line.


Define Documentation

#define XTESTS_COMMANDLINE_PARSEVERBOSITY ( argc,
argv,
pverbosity   ) 

Value:

\
    stlsoft_static_cast(void, XTESTS_NS_C_QUAL(xtests_commandLine_parseVerbosity)((argc), (argv), (pverbosity)))
Parses a verbosity from the command-line.

Parse the verbosity from the command-line arguments, looking for an argument of the form "--verbosity=<N>", where N is a non-negative integer.

Parameters:
argc The argc parameter passed into main()
argv The argv parameter passed into main()
pverbosity A pointer to an integer to receive the verbosity. Will be set to xtestsVerbositySummaryOnSuccess even if no verbosity argument is found. May not be NULL.
Returns:
The index of argument containing the verbosity, or 0 to indicate failure
Examples:
c/example.c.runner/example.c.runner.c, and c/example.c.tests/example.c.tests.c.


xTests Library documentation © Matthew Wilson and Synesis Software Pty Ltd, 1999-2009 SourceForge.net Logo