Program termination: Difference between revisions
→{{header|Picat}}
m (→{{header|Phix}}: syntax coloured) |
|||
Line 1,262:
exit(1);</lang>
The <code>register_shutdown_function()</code> function can be used to register functions to be run when the program exits.
=={{header|Picat}}==
<lang Picat>
% ...
if problem then
halt
end,
% ...
</lang>
or
<lang Picat>
% ...
if problem then
exit
end,
% ...
</lang>
=={{header|PicoLisp}}==
|