hare

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

start.ha (429B)


      1 // SPDX-License-Identifier: MPL-2.0
      2 // (c) Hare authors <https://harelang.org>
      3 
      4 @symbol("main") fn main() void;
      5 
      6 const @symbol("__init_array_start") init_start: [*]*fn() void;
      7 const @symbol("__init_array_end") init_end: [*]*fn() void;
      8 const @symbol("__fini_array_start") fini_start: [*]*fn() void;
      9 const @symbol("__fini_array_end") fini_end: [*]*fn() void;
     10 
     11 export fn start_ha() never = {
     12 	init();
     13 	main();
     14 	fini();
     15 	exit(0);
     16 };