summaryrefslogtreecommitdiff
path: root/euler/source/entry.cpp
blob: b888027b9bc287de989d77a49cc228090f702412 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <euler/syscall.hpp>
#include <cstdlib>
#include <string>

int main();

extern "C" [[noreturn]] void _start() {

  //TODO: call static initializers

  int exit_code = main();

  //TODO: call at_exit stuff

  euler::syscall::end_this_process(exit_code);

}