Go up to Execution Go forward to rt_exit() : Program Termination
|
rt_main()
: Program Start=
rt_main
(f, argc, argv,
arg, res) Specification: Executes the RT++ program f(argc, argv) in the environment set up by the argument object arg. The return value of f is returned as code. If res is not 0, some statistics information is returned in the result object referenced by res.
If the RT++ program is terminated by
rt_exit
(r),
code is r. If the
RT++ program is aborted by
rt_abort
(s), code is . If during program execution the
program anything goes wrong (i.e. the program crashes or runs out of
memory), code is .
In any case, code is also stored in the res object.
Constraint: All components of the argument structure arg must be positive, except for the verbose flag which must be or .