DEBUG(5)

Table of Contents

Name

debugoption array of debug option flags

Synopsis

BOOLEAN debugoption[128];

Description

This component of the run-time library is an array of BOOLEAN flags that specify which debug options were chosen on the meta command line.

Debug options are selected by the standard -D chars command line option that all SDTools have by default (see OPTION(2) ). The chars can be any string of printable ASCII characters, where each character may be a different debug flag. For example, if the option -D r6 were given on the command line, then both debugoption['r'] and debugoption['6'] would be TRUE, and all other elements of debugoption would be FALSE.

The debugoption array provides a standard way to include debugging code in an SDTool. For example, the following code in the middlecode section could be used to print out debugging statistics:
if (debugoption['s'])
print_stats();
This debugging option would be selected by the -D s command line option.

See Also

OPTION(2)


© 1990 Lucent Technologies, Inc
© 1998 Harmony Software, Inc