exitprocs

Procs

proc addExitProc(cl: proc () {...}{.closure.}) {...}{.raises: [Exception],
    tags: [RootEffect].}
Adds/registers a quit procedure. Each call to addExitProc registers another quit procedure. They are executed on a last-in, first-out basis.   Source Edit
proc addExitProc(cl: proc () {...}{.noconv.}) {...}{.raises: [Exception],
    tags: [RootEffect].}
overload for noconv procs.   Source Edit
proc getProgramResult(): int {...}{.raises: [], tags: [].}
  Source Edit
proc setProgramResult(a: int) {...}{.raises: [], tags: [].}
  Source Edit