dos_compilers/Logitech Modula-2 v34/M2LIB/DEF/ERRORCOD.DEF
2024-07-02 07:25:31 -07:00

36 lines
883 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(* Abbreviation: ErrorCode *)
(* Version 1.20, Jul 1985 *)
DEFINITION MODULE ErrorCode;
(*
handle return code to operating system
*)
EXPORT QUALIFIED
SetErrorCode, GetErrorCode, ExitToOS;
PROCEDURE SetErrorCode(value: CARDINAL);
(*
Sets the error return code that will be
used on normal termination; but it doesn't
terminate the program immediately.
*)
PROCEDURE GetErrorCode(VAR value: CARDINAL);
(*
Allows to inspect the set return code
*)
PROCEDURE ExitToOS;
(*
Terminate current program and return to operating
system. Set the error code corresponding to value
defined by a previous call to SetErrorCode.
implementation restriction: if the program is
using overlays, only
the current overlay will be terminated.
*)
END ErrorCode.