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

Utility Functions


Detailed Description

Utility functions that supplement use of the library.


Defines

#define XTESTS_ARRAY_END_POST(ar)   (&0[(ar)] + STLSOFT_NUM_ELEMENTS(ar))
 Evaluates the end-point of an array, based on its static array size.
#define XTESTS_COMMANDLINE_PARSEVERBOSITY(argc, argv, pverbosity)
 Parses a verbosity from the command-line.


Define Documentation

#define XTESTS_ARRAY_END_POST ( ar   )     (&0[(ar)] + STLSOFT_NUM_ELEMENTS(ar))

Evaluates the end-point of an array, based on its static array size.

#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


b64 Library documentation © Synesis Software Pty Ltd, 2004-2012