Function

Gjsgjs/systemexit

  • This works the same as C's exit() function; exits the program, passing a certain error code to the shell. The shell expects the error code to be zero if there was no error, or non-zero (any value you please) to indicate an error.

    This value is used by other tools such as make; if make calls a program that returns a non-zero error code, then make aborts the build.

    Parameters

    • code: number

      An exit code

    Returns never