☰

# std/exitprocs

Theme:

- Manual
- Standard library
- Index
- Compiler docs
- Fusion docs
- devel, stable

Search:
Source Edit

This module allows adding hooks to program exit.

# Imports

locks

# Procs

    proc addExitProc(cl: proc () {.closure.}) {....raises: [], tags: [], forbids: [].}

  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: [], tags: [], forbids: [].}

  overload for `noconv` procs. Source Edit

    proc getProgramResult(): int {....raises: [], tags: [], forbids: [].}

  Source Edit

    proc setProgramResult(a: int) {....raises: [], tags: [], forbids: [].}

  Source Edit