| 1 |
// SPDX-License-Identifier: MPL-2.0 |
| 2 |
// (c) Hare authors <https://harelang.org> |
| 3 |
|
| 4 |
use rt; |
| 5 |
|
| 6 |
// Exit the program with the provided status code. |
| 7 |
export fn exit(status: int) never = { |
| 8 |
// The @fini functions will be run by libc. |
| 9 |
rt::exit(status); |
| 10 |
}; |