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

int main(int argc, char **argv);

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

  //TODO: static constructors

  //TODO: get command line via system call and populate argc and argv.
  int argc = 0;
  char **argv = 0;

  int result = main(argc, argv);

  //TODO: static destructors

  _syscall_end_this_process(result);

}