FINALCODE(2)

Table of Contents

Name

finalcode C code executed after all products are generated

Synopsis

%finalcode
C-code segment

Description

The finalcode section of a source description file contains C code that is executed by an SDTool after all its products are generated, and just before it completes processing. The code is inserted in main.c at the end of the main procedure. Any cleanup code that should be executed by the SDTool before it terminates should be placed in this section.

Example

%finalcode
clean_up();
if (errorcount==0)
reportinfo("End Application Generator."); else
reportinfo("Ending with %d errors.", errorcount); agexit(errorcount);

See Also

DECLARE(2)
HEADER(2)
MIDDLECODE(2)
STARTCODE(2)
PRECODE(3)
POSTCODE(3)


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