hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

exit.ha (213B)


      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 	rt::fini();
      9 	rt::exit(status);
     10 };