mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 05:12:26 +00:00
Remove SetHalt documentation - code was already disabled.
This commit is contained in:
parent
1a8799d21c
commit
056a317e54
2 changed files with 0 additions and 7 deletions
|
|
@ -144,5 +144,3 @@ HALT displays the message 'Terminated by Halt(n)'. For negative values that corr
|
||||||
|
|
||||||
Bear in mind that both Linux and Windows generally treat the return code as a signed 8 bit value, ignoring higher order bits. Therefore it is best to restrict HALT and ASSERT codes to the range -128 .. 127.
|
Bear in mind that both Linux and Windows generally treat the return code as a signed 8 bit value, ignoring higher order bits. Therefore it is best to restrict HALT and ASSERT codes to the range -128 .. 127.
|
||||||
|
|
||||||
A client application may register a halt handler by calling Platform.SetHalt(p) where p: PROCEDURE(n: SYSTEM.INT32). This procedure will be called before Halt displays it's message. The procedure may suppress the Halt message by calling Platform.Exit(code: INTEGER) directly.
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -151,9 +151,4 @@ MODULE Modules; (* jt 6.1.96 *)
|
||||||
Platform.Exit(code);
|
Platform.Exit(code);
|
||||||
END AssertFail;
|
END AssertFail;
|
||||||
|
|
||||||
(*
|
|
||||||
PROCEDURE SetHalt*(p: HaltProcedure);
|
|
||||||
BEGIN HaltHandler := p; END SetHalt;
|
|
||||||
*)
|
|
||||||
|
|
||||||
END Modules.
|
END Modules.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue