summaryrefslogtreecommitdiff
path: root/stdlib/entry.cpp
blob: 5557c8ac5099d823deeab7ac98c69336669e3c9f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int main(int argc, char **argv);

extern "C" [[noreturn]] void _entry() {
  //TODO: get command line via system call and populate argc and argv.
  int argc = 0;
  char **argv = 0;

  int result = main(argc, argv);

  //TODO: exit via system call and return result.
  (void)result;
  while (1)
    ;
}